Comment 0 for bug 1383727

Revision history for this message
Larry Michel (lmic) wrote : Fast installer - failure to install grub on non-standard device (UEFI mode)

After recent upgrade to 1.7, fast installer trusty deployment with /dev/fioa as boot device does not work. This is for UEFI mode. It worked prior to upgrade. Below is output cloud-init-output.log:
"
...
grub-install: error: /usr/lib/grub/modinfo.sh doesn't exist. Please specify --target or --directory.
failed to install grub!
Unexpected error while running command.
Command: ['install-grub', '--uefi', '/tmp/tmpBpbjAX/target', '/dev/fioa']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: "
<< additional log goes here >>
 ...\nSetting up efibootmgr (0.5.4-7ubuntu1) ...\nSetting up grub-efi-amd64-bin (2.02~beta2-9ubuntu1) ...\nSetting up grub-efi-amd64 (2.02~beta2-9ubuntu1) ...\nReplacing config file /etc/default/grub with new version\nGenerating grub configuration file ...\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\nSetting up grub-efi-amd64-signed (1.34.1+2.02~beta2-9ubuntu1) ...\nSetting up sbsigntool (0.6-0ubuntu7) ...\nSetting up secureboot-db (1.1) ...\nCan't access efivars filesystem at /sys/firmware/efi/efivars, aborting\nSetting up shim (0.4-0ubuntu4) ...\nSetting up shim-signed (1.6+0.4-0ubuntu4) ...\nReplacing config file /etc/default/grub with new version\nGenerating grub configuration file ...\nWarning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\nGenerating grub configuration file ...\nWarning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.\nFound linux image: /boot/vmlinuz-3.13.0-35-generic\nFound initrd image: /boot/initrd.img-3.13.0-35-generic\ndone\ngrub-install: error: /usr/lib/grub/modinfo.sh doesn't exist. Please specify --target or --directory.\nfailed to install grub!\nUnexpected error while running command.\nCommand: ['install-grub', '--uefi', '/tmp/tmpBpbjAX/target', '/dev/fioa']\nExit code: 1\nReason: -\nStdout: ''\nStderr: ''\n"
Stderr: ''
Success
umount: /tmp/tmpBpbjAX/target: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
Unexpected error while running command.
Command: ['umount', '/tmp/tmpBpbjAX/target']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
2014-10-21 13:04:31,654 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [3]
2014-10-21 13:04:31,656 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2014-10-21 13:04:31,656 - util.py[WARNING]: Running scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
Cloud-init v. 0.7.5 finished at Tue, 21 Oct 2014 13:04:32 +0000. Datasource DataSourceMAAS [http://10.245.0.10/MAAS/metadata/curtin]. Up 122.36 seconds
"