mirror of
https://github.com/troglobit/finit.git
synced 2026-11-12 16:51:25 +00:00
Fix GRUB menu entry generation for Debian & Ubuntu
This patch fixes the /etc/grub.d/40_custom generation for the Debian sample so that it properly extracts the UUID For /boot and / Note: the maintenance free symlinks /vmlinuz and /initrd.img may not work properly with /boot on a separate partition or disk. If only the symlinks where in /boot as well ... Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
0a21ff5236
commit
b6bf8bf518
3 files changed
+11
-6
No files matched your search
@@ -4,12 +4,11 @@ exec tail -n +3 $0
|
||||
# menu entries you want to add after this comment. Be careful not to change
|
||||
# the 'exec tail' line above.
|
||||
|
||||
menuentry 'Debian GNU/Linux with Finit' --class debian --class gnu-linux --class gnu --class os --user {
|
||||
menuentry '$MENU with Finit' --class $TYPE --class gnu-linux --class gnu --class os --user {
|
||||
insmod gzio
|
||||
insmod part_msdos
|
||||
insmod ext2
|
||||
set root='(hd0,0)'
|
||||
search --no-floppy --fs-uuid --set=root 05831a47-bf7c-4812-9cb2-818537aa68fc
|
||||
linux /vmlinuz root=UUID=05831a47-bf7c-4812-9cb2-818537aa68fc ro quiet init=/sbin/finit
|
||||
search --no-floppy --fs-uuid --set=root $BOOT
|
||||
linux /vmlinuz root=UUID=$ROOT ro quiet init=/sbin/finit
|
||||
initrd /initrd.img
|
||||
}
|
||||
Reference in new issue
Block a user