[Bug 808017] New: with crypted lvm in UEFI mode no /boot partition is proposed
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c0
Summary: with crypted lvm in UEFI mode no /boot partition is
proposed
Classification: openSUSE
Product: openSUSE 12.3
Version: RC 2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: YaST2
AssignedTo: aschnell@suse.com
ReportedBy: lnussel@suse.com
QAContact: jsrain@suse.com
CC: fehr@suse.com
Found By: ---
Blocker: ---
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c1
--- Comment #1 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c
Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c2
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c3
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c4
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c5
--- Comment #5 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c6
--- Comment #6 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c7
--- Comment #7 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c8
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c9
--- Comment #9 from Michael Chang
Looks like there are different opinions about what is the best setup. For reference, here is a discussion on the systemd list which indicates that they plan to mount the ESP at /boot: http://lists.freedesktop.org/archives/systemd-devel/2013-January/008273.html
AFAICT there are several proposals so far: 1. ESP at /boot/efi, separate /boot as usual, only bootloader in ESP 2. ESP at /boot/efi, /boot on /, bootloader in ESP, bootloader implements all features to access raid, lvm, crypto etc. itself. 3. ESP at /boot/efi, /boot on /, bootloader in ESP, bootloader setup script copies kernel&initrd to ESP. 4. ESP at /boot, bootloader (optional), kernel and initrd in ESP. kernel&initrd would need to be packaged in e.g. /boot/EFI/opensuse then.
1. and 2. require feature rich bootloaders like grub2 while 3 and 4 don't.
My 0.02 cents For none uefi firmware, there's no choice but either #2 or #1, so the solution can be considered "generic" .. (if bootloader can't support #2 then fallback to #1). For uefi, we could offer ESP on /boot as (better?) alternative to propose #1, it can't be any way better than #2 as that's the real meat. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c10
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c11
--- Comment #11 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c12
--- Comment #12 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c13
Simon Toth
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c14
--- Comment #14 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c15
--- Comment #15 from Simon Toth
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c16
--- Comment #16 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c17
--- Comment #17 from Simon Toth
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c18
--- Comment #18 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c19
--- Comment #19 from Simon Toth
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c20
--- Comment #20 from Andrey Borzenkov
Unfortunately on my desktop I was unable to make grub-efi boot across disks (I have one disk with Windows and one disk with Linux there)
I'd it the same as https://bugzilla.novell.com/show_bug.cgi?id=809038? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c21
--- Comment #21 from Michael Chang
if bootloader cannot handle LVM over raid you are right, Michael is this supposed to be handled by bootloader?
RAID on LVM (or the other way round) cannot be handled by grub2, as far as I know. :(
In above case I would suggest to use the (now unused) slot on second ssd as partiton for /boot
Yes we need a /boot partition for it.
AFAIK this should work and be doable with installer without a problem If bootloader setup does not have a problem with /boot/efi and /boot being on different disks the system should work fine.
It should have no problem /boot and /boot/efi on different disks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c22
--- Comment #22 from Michael Chang
How do I do a legacy installation?
For bootloader you can switch to grub2 or grub in yast2 bootloader, not sure about rest of the installation you need to take care of but better using msdos table for legacy. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c23
--- Comment #23 from Michael Chang
I think I just tried a slightly different but similar variant that did install, but won't boot up:
/dev/sda1 + /dev/sdb1 mirror vfat /boot/efi
Apparently UEFI firmware can hanlde ESP on RAID thus booting failed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c24
--- Comment #24 from Simon Toth
Apparently UEFI firmware can hanlde ESP on RAID thus booting failed.
Yup seems so. I have now tried this layout: /dev/sda1 vfat /boot/efi /dev/sdb1 vfat empty /dev/sda2 + /dev/sdb2 mirror ext4 /boot /dev/sda3 + /dev/sdb3 mirror LVM -> swap/root/home And it leads to a bootable system. The problem is that if I disconnect /dev/sda I end up with an unbootable machine. Doing a simple "dd if=/dev/sda1 of=/dev/sdb1" isn't enough. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c25
--- Comment #25 from Simon Toth
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c26
--- Comment #26 from Andrey Borzenkov
RAID on LVM (or the other way round) cannot be handled by grub2, as far as I know. :(
Of course it can, I just tested it (grub ${prefix} on LVM on MD). grub.efi size is 147K, so in even easily fits in modern post-MBR gap (1M by default). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c27
--- Comment #27 from Andrey Borzenkov
Apparently UEFI firmware can hanlde ESP on RAID thus booting failed.
You probably mean "can not". Do not forget that you need to use metadata version 0.9 or 1.0. And default is 1.2. 1.1 and 1.2 place metadata at the beginning of device so firmware does not find filesystem. I tested booting from ESP on Linux MD RAID1 and it worked just fine, but I think something got confused (grub2-install or perl-bootloader). The main problem with this is - you cannot prevent writing to ESP while in firmware, which in case of RAID1 leads to filesystem corruption. So I would really prefer two independent ESPs on different disks and manual synchronization by perl-bootloader (after all we just need to copy couple of files). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c28
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=808017
https://bugzilla.novell.com/show_bug.cgi?id=808017#c29
--- Comment #29 from Thomas Fehr
participants (1)
-
bugzilla_noreply@novell.com