initramfs: doesn't work with lilo as bootloader
Bug #19609 reported by
Andreas Schultz
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Critical
|
Jeff Bailey |
Bug Description
scripts/local test if the root device exists. It apparently expects ROOT to be
something like /dev/hda.
lilo passes the root device as a numeric id of the root device, e.g. fd00 for a
LVM device. The root device test will fail on this.
Using grub is not alternative for me, since grub doesn't support booting of
RAID1 device the same way as lilo does (redundant boot records).
# cat /proc/cmdline
BOOT_IMAGE=Linux rw root=fd00 ramdisk_size=32768 nmi_watchdog=1
console=ttyS0,9600 console=tty0
Andreas
To post a comment you must log in.
Mostly as a note to myself, this should work for regular and md partitions, but
not for lvm. lvm triggers based on the presence of a volume group name.
parse_numeric() {
minor= ${1#*:}
major= ${1%:*}
minor= $((0x${ 1#??}))
major= $((0x${ 1%??}))
case $1 in
*:*)
;;
*)
;;
esac
mknod /dev/root b ${major} ${minor}
ROOT=/ dev/root
}