instmods $modules
+# Grab modules for all filesystem types we currently know about
+while read d mp t rest; do
+ instmods "$t"
+done </proc/mounts
+
/sbin/depmod -a -b "$initdir" $kernel || {
error "\"/sbin/depmod -a $kernel\" failed."
exit 1
mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts
mknod /dev/tty0 c 4 0
mknod /dev/tty1 c 4 1
+mknod /dev/null c 1 3
# start plymouth if it's available
# arguably we need some of udev run first for fbmods and above devnodes :/
# start up udev and trigger cold plugs
udevd --daemon
-udevadm trigger
+udevadm trigger >/dev/null 2>&1
# mount the rootfs
NEWROOT="/sysroot"
# it'd be nice if we had a udev rule that just did all of the bits for
# figuring out what the specified root is and linking it /dev/root
root=$(getarg 'root=*'); root=${root#root=}
-echo -n "Going to mount rootfs ($root)"
+plymouth --update "Going to mount rootfs ($root)"
case $root in
LABEL=*) root=${root#LABEL=}
root=${root//\//\\x2f}
# should we have a timeout?
tries=0
+plymouth --update "Waiting up to 30 seconds for $root to become available"
until [[ -e $root ]]; do
- echo -n "."
sleep 1
((tries++ > 30)) && emergency_shell
done
-echo -e "\n\nMounting rootfs after $tries seconds"
+plymouth --update "Mounting rootfs after $tries seconds"
ln -s "$root" /dev/root
mount -o ro /dev/root $NEWROOT || emergency_shell