REAL_ROOTFLAGS=''
ROOTFSTYPE='auto'
CRYPT_SILENT=0
+mkdir -p /etc/cmdline /etc/modprobe.d
for x in ${CMDLINE}
do
case "${x}" in
nounionfs)
USE_UNIONFS_NORMAL=0
;;
+ *=*)
+ case "${x%%=*}" in
+ *.*)
+ echo "${x#*.}" >> "/etc/module_options/${x%%.*}.conf"
+ ;;
+ esac
+ ;;
esac
done
# Set variables based on the value of REAL_ROOT
case "${REAL_ROOT}" in
- ZFS*)
+ ZFS=*)
ZFS_POOL=${REAL_ROOT#*=}
ZFS_POOL=${ZFS_POOL%%/*}
USE_ZFS=1
# Mount sysfs
mount_sysfs
-# Start mdev
+# Initialize mdev
if [ "${KV_2_6_OR_GREATER}" ]
then
good_msg 'Activating mdev'
# Setup hotplugging for firmware loading
echo /sbin/mdev > /proc/sys/kernel/hotplug
-
- # Setup mdev netlink socket daemon
- ( cd /sys && mdev -s ) || bad_msg "Failed to receive dynamic updates from mdev"
fi
# Load modules listed in MY_HWOPTS if /lib/modules exists for the running kernel
good_msg 'Skipping module load; no modules in the ramdisk!'
fi
+# Ensure that device nodes are properly configured
+if [ "${KV_2_6_OR_GREATER}" ]
+then
+ mdev -s || bad_msg "mdev -s failed"
+fi
+
# Apply scan delay if specified
sdelay
done;
+ else
+ got_good_root=0
fi
fi