X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=blobdiff_plain;f=initscripts%2Fpl_sysinit;h=25cba4e52a90d0eba5b26df7875559dd7774f46e;hp=dd2f893f9bf1d06572de42318ac911534be612d3;hb=7428db3606354833b77f2ed33d928f7ac804011f;hpb=c2127494a9b277ddb164ff04a79c1724a3e3ae2e diff --git a/initscripts/pl_sysinit b/initscripts/pl_sysinit index dd2f893..25cba4e 100755 --- a/initscripts/pl_sysinit +++ b/initscripts/pl_sysinit @@ -86,7 +86,7 @@ function check-block-devices() { fi done fi - + verbose-message "pl_sysinit: checking $device for /usr contents" /bin/mount -o ro -t iso9660 /dev/$device /usr 2>&1 > /dev/null if [ $? -eq 0 ]; then @@ -126,7 +126,7 @@ if [ $mounted -eq 0 ]; then fi # parts of this were copied from devmap_mknod.sh from the device-mapper -# source. Since fedora decided not to include it in the rpm, it is +# source. Since fedora decided not to include it in the rpm, it is # being copied here function create-device-mapper-node() { @@ -137,7 +137,7 @@ function create-device-mapper-node() { MAJOR=$(sed -n 's/^ *\([0-9]\+\) \+misc$/\1/p' /proc/devices) MINOR=$(sed -n "s/^ *\([0-9]\+\) \+$DM_NAME\$/\1/p" /proc/misc) - + if [ -n "$MAJOR" ] && [ -n "$MINOR" ]; then /bin/mkdir -p --mode=755 $DIR /bin/rm -f $CONTROL