https://qa.mandrakesoft.com/show_bug.cgi?id=1654
------- Additional Comments From [EMAIL PROTECTED] 2003-02-15 01:39 -------
suggested solution
--- /sbin/mkinitrd 2003-02-14 19:35:12.000000000 -0500
+++ /tmp/mkinitrd 2003-02-14 19:34:58.000000000 -0500
@@ -406,6 +406,15 @@
rootfsopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $6) { print $4; }}'
$fstab | sed "s|defaults||;s|auto||;s|loop||;s|,,|,|;s|,$||;s|^,||")
rootdev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' $fstab)
+if [ ${rootdev:0:6} = "LABEL=" ];
+then
+ rootdev=${rootdev/LABEL=/}
+ if [ $(e2label /dev/root) = ${rootdev} ];
+ then
+ rootdev=/dev/root
+ fi
+ echo "rootdev=${rootdev}"
+fi
root_major=$(ls -l $rootdev | awk '{ print $5}')
if [ $root_major = 58, ]; then
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: UNCONFIRMED
creation_date:
description:
1. something in the in the pkg is adding root=LABEL=linux_root to my /etc/lilo.conf
2. lilo reports error at end of kernel install,
3. manual edit /etc/lilo.conf and changing root=LABEL=linux_root to
root=/dev/root fixes the error,
4. using lilo revalidates file
log follows
Preparing... ##################################################
1:kernel-2.4.21.0.pre4.6mdk##################################################
ls: LABEL=linux_root: No such file or directory
/sbin/mkinitrd: line 411: [: =: unary operator expected
mke2fs 1.27ea (14-Mar-2002)
ls: LABEL=linux_root: No such file or directory
/sbin/mkinitrd: line 411: [: =: unary operator expected
mke2fs 1.27ea (14-Mar-2002)
There is an error when regenerating lilo, you may have to check your /etc/lilo.conf
what the /etc/lilo.conf has for the above error is
image=/boot/vmlinuz-2.4.21pre4-6mdk
label=2421-6
root=LABEL=linux_root
read-only
optional
vga=791
append=" quiet devfs=mount hdc=ide-scsi"
initrd=/boot/initrd-2.4.21pre4-6mdk.img