From: Tobias Burnus (tobias.burnus_at_physik.fu-berlin.de)
Date: Thu Oct 04 2001 - 18:55:19 CEST
Date: Thu, 4 Oct 2001 18:55:19 +0200 (CEST) From: Tobias Burnus <tobias.burnus@physik.fu-berlin.de> Message-ID: <Pine.BSF.4.30.0110041847310.49565-100000@warp.physik.fu-berlin.de> Subject: mk_initrd and LVM
Hi,
I still struggle with getting LVM as / directory working.
(But I make progress: I found a bug in mk_initrd, see below [bugzilla
1303].)
While testing I realised that the mk_initrd is seemingly not called
(1. rebooting automaticall: stucks with cannot find root. -- 2. bootdisk,
mounting LVM "root": no /boot/initrd. -- 3. run mk_initrd by hand. Run
lilo. -- 4. reboot: still doesn't work since linux doesn't seem to use the
linuxrc of initrd. => 1.)
ALICE question: how do I make sure that mk_initrd is run before yast
reboots? (= step 2).
Tobias
The patch: Make lvm-root work even if $rootdev is set.
-------------------------------------------------------
if [ -z "$rootdev" ]
then
[ "$x2" = 1 -a -b "$x3" ] && rootdev="$x3"
- major=`ls -l "$rootdev" | sed -e "s/.* \\([0-9]\+\\), *[0-9]\+.*/\\1/"`
- [ "$major" -ne 58 ] || root_lvm=1
fi
+
+root_lvm=0
+major=`ls -l "$rootdev" | sed -e "s/.* \\([0-9]\+\\), *[0-9]\+.*/\\1/"`
+[ "$major" -ne 58 ] || root_lvm=1
if [ $root_lvm -eq 1 ]
------------------------------------------------------
This archive was generated by hypermail 2.1.7 : Wed Jun 25 2003 - 22:19:22 CEST