[Bug 1097570] Re: grub2-signed can not find the right device when there are two filesystems containing the file '.disk/info'.
Bin Li
1097570 at bugs.launchpad.net
Thu Oct 17 09:47:30 UTC 2013
Collin,
I just download the 20131016.1 daily live cdimage, and record it into
DVD, then boot up from CDRom.
When secure boot is disabled, and UEFI first, it's just hang after the
"error: variable 'root' isn't set."
When secure boot is enabled, it will boot up to recovery partition, I can hear the drive noise when select boot from DVD driver.
When it's in the UI of restore, I switch to tty1, you can find my recovery partition /dev/sda1 is mounted as /cdrom.
$ df -kh
Filesystem Size Used Avail Use% Mounted on
/cow 1.6G 31M 1.6G 2% /
udev 1.6G 4.0K 1.6G 1% /dev
tmpfs 649M 836K 648M 1% /run
/dev/sda1 1.5G 1.2G 279M 82% /cdrom
/dev/loop0 1.1G 1.1G 0 100% /rofs
tmpfs 1.6G 20K 1.6G 1% /tmp
none 5.0M 4.0K 5.0M 1% /run/lock
none 1.6G 76K 1.6G 1% /run/shm
And from dmesg log you can find the kernel's boot parameter.
0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.5.0-36-generic (buildd at allspice) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #57sutton6-Ubuntu SMP Wed Sep 4 10:49:49 UTC 2013 (Ubuntu 3.5.0-36.57sutton6-generic 3.5.7.14)
[ 0.000000] Command line: BOOT_IMAGE=/casper/vmlinuz ubuntu-recovery/recovery_type=hdd boot=casper automatic-ubiquity noprompt quiet splash -- mem=4GB locale=zh_CN.UTF-8
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1097570
Title:
grub2-signed can not find the right device when there are two
filesystems containing the file '.disk/info'.
Status in OEM Priority Project:
Triaged
Status in OEM Priority Project precise series:
Triaged
Status in “grub2” package in Ubuntu:
Fix Released
Status in “grub2” source package in Precise:
Triaged
Status in “grub2” source package in Raring:
Confirmed
Bug description:
* Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130108)
precise-desktop-amd64.iso from http://cdimage.ubuntu.com/precise/daily-live/current/ .
* Package Version
grub2-signed 1.9~ubuntu12.04.2+1.99-21ubuntu3.7
* Reproduce Steps
1. Use `usb-creator-gtk` to create a bootable USB drive by precise-desktop-amd64.iso
2. Use this USB drive to boot "Try Ubuntu without installing" on an UEFI secure boot enabled laptop.
3. Create only one 1GB primary fat32 partition on the disk of the laptop with GPT-based disk layout.
4. Mount fat32 partition on /mnt
$ sudo mount /dev/sda1 /mnt
5. Manually copy all contents from the USB stick into the fat32 partition.
$ sudo cp -av /cdrom/.disk /cdrom/* /mnt
6. Set up the EFI boot entry.
$ sudo apt-get install efibootmgr grub-efi-amd64-signed shim-signed
$ sudo grub-install --removable --uefi-secure-boot --root-directory /mnt /dev/sda1
$ sudo efibootmgr -c -d /dev/sda -p 1 -l "\\EFI\\BOOT\\BOOTx64.EFI" -L recovery
7. Append 'from recovery partition' to every menuentry title in /mnt/boot/grub/grub.cfg .
8. Reboot and select the boot entry 'recovery' from UEFI boot option menu.
* Expected Result
We can see every menu entry of grub with the suffix 'from recovery partition'.
* Actual Result
There is no suffix 'from recovery partition' on menu entries of grub.
P.S. The USB drive is still plunged in the laptop. After we unplug the
USB drive and select the boot entry 'recovery' from UEFI boot option
menu, we can see every menu entry of grub with the suffix 'from
recovery partition'.
To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1097570/+subscriptions
More information about the foundations-bugs
mailing list