On 4/12/11 11:48 PM, Mark Post wrote:
On 4/12/2011 at 10:39 PM, Leland Lucius<lluc...@homerow.net> wrote:
n 4/12/11 4:11 PM, Leland Lucius wrote:
Does anyone else find this bit of code produced by mkinitrd to be a little
off?
root=/dev/*)
set -- $(IFS=/ ; echo $o)
if [ "$#" = "3" ]&& [ "$2" != "cciss" ] ; then
vg_root=$2
fi
;;
This comes from the "init" script created by the mkinitrd command.
How about if '/proc/cmdline' has "root=/dev/rootvg/lv01" as one of the
arguments?
The intent seems to be to pick out the VG name, since a couple of lines below
that I see
if [ -z "\$vg_root" ]; then
vg_root=$vg_root
fi
Yepper, that's exactly what it's supposed to do, but the word count
("$#") will not be 3, it will be 4 for "root=/dev/rootvg/lv01":
root=
dev
rootvg
lv01
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/