Comment 9 for bug 1383727

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

Yes, seems to be happening for other devices as well. Here's a recreate with latest image:

Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.13.0-39-generic
Found initrd image: /boot/initrd.img-3.13.0-39-generic
done
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/tmpCk8Ljc/target', '/dev/sdc']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: "Ign http://archive.ubuntu.com trusty InRelease\nIgn http://archive.ubuntu.com trusty-updates InRelease\nIgn http://archive.ubuntu.com trusty-security InRelease\nGet:1 http://archive.ubuntu.com trusty Release.gpg [933 B]\nGet:2 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]\nGet:3 http://archive.ubuntu.com trusty-security Release.gpg [933 B]\nGet:4 http://archive.ubuntu.com trusty Release [58.5 kB]\nGet:5 http://archive.ubuntu.com trusty-updates Release [62.0 kB]\nGet:6 http://archive.ubuntu.com trusty-security Release [59.7 kB]\nGet:7 http://archive.ubuntu.com trusty/main amd64 Packages [1350 kB]\nGet:8 http://archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]\nGet:9 http://archive.ubuntu.com trusty/universe amd64 Packages [5859 kB]\nGet:10 http://archive.ubuntu.com trusty/multiverse amd64 Packages [132 kB]\nGet:11 http://archive.ubuntu.com trusty/main Translation-en [762 kB]\nGet:12 http://archive.ubuntu.com trusty/multiverse Translation-en [102 kB]\nGet:13 http://archive.ubuntu.com trusty/restricted Translation-en [3457 B]\nGet:14 http://archive.ubuntu.com trusty/universe Translation-en [4089 kB]\nGet:15 http://archive.ubuntu.com trusty-updates/main amd64 Packages [352 kB]\nGet:16 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [5820 B]\nGet:17 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [216 kB]\nGet:18 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [9365 B]\nGet:19 http://archive.ubuntu.com trusty-updates/main Translation-en [159 kB]\nGet:20 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [4719 B]\nGet:21 http://archive.ubuntu.com trusty-updates/restricted Translation-en [1736 B]\nGet:22 http://archive.ubuntu.com trusty-updates/universe Translation-en [108 kB]\nGet:23 http://archive.ubuntu.com trusty-security/main amd64 Packages [151 kB]\nGet:24 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14 B]\nGet:25 http://archive.ubuntu.com trusty-security/universe amd64 Packages [50.4 kB]\nGet:26 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [1145 B]\nGet:27 http://archive.ubuntu.com trusty-security/main Translation-en [74.3 kB]\nGet:28 http://archive.ubuntu.com trusty-security/multiverse Translation-en [587 B]\nGet:29 http://archive.ubuntu.com trusty-security/restricted Translation-en [14 B]\nGet:30 http://archive.ubuntu.com trusty-security/universe Translation-en [29.7 kB]\nFetched 13.7 MB in 4s (3144 kB/s)\nReading package lists...\nLeaving 'diversion of /etc/init/ureadahead.conf to /etc/init/ureadahead.conf.disabled by cloud-init'\n8192+0 records in\n8192+0 records out\n8589934592 bytes (8.6 GB) copied, 50.3288 s, 171 MB/s\nSetting up swapspace version 1, size = 8388604 KiB\nno label, UUID=9b53c4c2-d7e5-4dbf-9eb1-c2f5ab1a757f\nReading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n efibootmgr grub-efi-amd64-bin sbsigntool secureboot-db shim\nThe following packages will be REMOVED:\n grub-gfxpayload-lists grub-pc\nThe following NEW packages will be installed:\n efibootmgr grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed\n sbsigntool secureboot-db shim shim-signed\n0 upgraded, 8 newly installed, 2 to remove and 0 not upgraded.\nNeed to get 2138 kB of archives.\nAfter this operation, 9736 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com//ubuntu/ trusty/main efibootmgr amd64 0.5.4-7ubuntu1 [28.4 kB]\nGet:2 http://archive.ubuntu.com//ubuntu/ trusty-updates/main grub-efi-amd64-bin amd64 2.02~beta2-9ubuntu1 [649 kB]\nGet:3 http://archive.ubuntu.com//ubuntu/ trusty-updates/main grub-efi-amd64 amd64 2.02~beta2-9ubuntu1 [44.5 kB]\nGet:4 http://archive.ubuntu.com//ubuntu/ trusty-updates/main grub-efi-amd64-signed amd64 1.34.1+2.02~beta2-9ubuntu1 [245 kB]\nGet:5 http://archive.ubuntu.com//ubuntu/ trusty/main sbsigntool amd64 0.6-0ubuntu7 [50.1 kB]\nGet:6 http://archive.ubuntu.com//ubuntu/ trusty/main secureboot-db amd64 1.1 [2740 B]\nGet:7 http://archive.ubuntu.com//ubuntu/ trusty/main shim amd64 0.4-0ubuntu4 [792 kB]\nGet:8 http://archive.ubuntu.com//ubuntu/ trusty/main shim-signed amd64 1.6+0.4-0ubuntu4 [327 kB]\nPreconfiguring packages ...\nFetched 2138 kB in 0s (9122 kB/s)\n(Reading database ... 56020 files and directories currently installed.)\nRemoving grub-gfxpayload-lists (0.6) ...\nRemoving grub-pc (2.02~beta2-9ubuntu1) ...\nSaving menu.lst backup in /boot/grub/menu.lst_backup_by_grub2_prerm\nRunning update-grub Legacy to remove our core.img in it\n Searching for GRUB installation directory ... found: /boot/grub\n /usr/lib/grub-legacy/update-grub: line 116: grub: command not found\n /usr/lib/grub-legacy/update-grub: line 116: grub: command not found\n /usr/lib/grub-legacy/update-grub: line 153: grub: command not found\n Searching for default file ... found: /boot/grub/default\n Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst\n Searching for splash image ... none found, skipping ...\n Found kernel: /boot/vmlinuz-3.13.0-39-generic\n Updating /boot/grub/menu.lst ... done\n \nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\nSelecting previously unselected package efibootmgr.\n(Reading database ... 56000 files and directories currently installed.)\nPreparing to unpack .../efibootmgr_0.5.4-7ubuntu1_amd64.deb ...\nUnpacking efibootmgr (0.5.4-7ubuntu1) ...\nSelecting previously unselected package grub-efi-amd64-bin.\nPreparing to unpack .../grub-efi-amd64-bin_2.02~beta2-9ubuntu1_amd64.deb ...\nUnpacking grub-efi-amd64-bin (2.02~beta2-9ubuntu1) ...\nSelecting previously unselected package grub-efi-amd64.\nPreparing to unpack .../grub-efi-amd64_2.02~beta2-9ubuntu1_amd64.deb ...\nUnpacking grub-efi-amd64 (2.02~beta2-9ubuntu1) ...\nSelecting previously unselected package grub-efi-amd64-signed.\nPreparing to unpack .../grub-efi-amd64-signed_1.34.1+2.02~beta2-9ubuntu1_amd64.deb ...\nUnpacking grub-efi-amd64-signed (1.34.1+2.02~beta2-9ubuntu1) ...\nSelecting previously unselected package sbsigntool.\nPreparing to unpack .../sbsigntool_0.6-0ubuntu7_amd64.deb ...\nUnpacking sbsigntool (0.6-0ubuntu7) ...\nSelecting previously unselected package secureboot-db.\nPreparing to unpack .../secureboot-db_1.1_amd64.deb ...\nUnpacking secureboot-db (1.1) ...\nSelecting previously unselected package shim.\nPreparing to unpack .../shim_0.4-0ubuntu4_amd64.deb ...\nUnpacking shim (0.4-0ubuntu4) ...\nSelecting previously unselected package shim-signed.\nPreparing to unpack .../shim-signed_1.6+0.4-0ubuntu4_amd64.deb ...\nUnpacking shim-signed (1.6+0.4-0ubuntu4) ...\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\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-39-generic\nFound initrd image: /boot/initrd.img-3.13.0-39-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-39-generic\nFound initrd image: /boot/initrd.img-3.13.0-39-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-39-generic\nFound initrd image: /boot/initrd.img-3.13.0-39-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/tmpCk8Ljc/target', '/dev/sdc']\nExit code: 1\nReason: -\nStdout: ''\nStderr: ''\n"
Stderr: ''
Success
umount: /tmp/tmpCk8Ljc/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/tmpCk8Ljc/target']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
2014-11-04 16:40:20,903 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [3]
2014-11-04 16:40:20,905 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2014-11-04 16:40:20,905 - 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, 04 Nov 2014 16:40:21 +0000. Datasource DataSourceMAAS [http://10.245.0.10/MAAS/metadata/curtin]. Up 264.63 seconds