@ -41,6 +41,7 @@ mkdir /dev/pts
@@ -41,6 +41,7 @@ mkdir /dev/pts
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 :/
@ -50,7 +51,7 @@ mknod /dev/tty1 c 4 1
@@ -50,7 +51,7 @@ mknod /dev/tty1 c 4 1
# start up udev and trigger cold plugs
udevd --daemon
udevadm trigger
udevadm trigger >/dev/null 2>&1
# mount the rootfs
NEWROOT="/sysroot"
@ -59,7 +60,7 @@ NEWROOT="/sysroot"
@@ -59,7 +60,7 @@ 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}
@ -71,12 +72,12 @@ esac
@@ -71,12 +72,12 @@ esac
# 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