diff options
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/filesystems | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/hooks/filesystems b/hooks/filesystems index 12bc945..97d7d57 100644 --- a/hooks/filesystems +++ b/hooks/filesystems @@ -13,15 +13,19 @@ run_hook () /bin/sleep "${rootdelay}" msg "done." export rootdelay=0 - kinit_params="${kinit_params} rootdelay=0" + kparams "rootdelay=0" fi - eval $( /bin/parseblock "${root}") - if [ "${BLOCKNAME}" = "unknown" -o "x{BLOCKDEVICE}" = "x" ]; then + eval $(/bin/parseblock "${root}") + if [ "${BLOCKNAME}" = "unknown" ]; then FSTYPE="unknown" - echo "ERROR: Failed to parse block device '${root}'" + echo "ERROR: Failed to parse block device name for '${root}'" + elif [ "x${BLOCKDEVICE}" = "x" ]; then + FSTYPE="unknown" + echo "ERROR: Failed to parse block device ids for '${root}'" else export root="${BLOCKNAME}" + echo "/bin/mknod \"${BLOCKNAME}\" b ${BLOCKDEVICE}" /bin/mknod "${BLOCKNAME}" b ${BLOCKDEVICE} >/dev/null fi fi @@ -37,7 +41,7 @@ run_hook () if [ "${FSTYPE}" = "unknown" ]; then echo "ERROR: root fs cannot be detected. Try using the rootfstype= kernel parameter." else - kinit_params="${kinit_params} rootfstype=${FSTYPE}" + kparams "rootfstype=${FSTYPE}" /bin/modprobe -q "${FSTYPE}" >/dev/null 2>&1 fi } |