2 export PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
3 strstr
() { [ "${1##*"$2"*}" != "$1" ]; }
4 CMDLINE
=$
(while read line ||
[ -n "$line" ]; do echo $line;done < /proc
/cmdline
)
6 exec >/dev
/console
2>&1
7 echo "dracut-root-block-success" >/dev
/sda
9 export PS1
='initramfs-test:\w\$ '
11 [ -f /etc
/fstab
] ||
ln -s /proc
/mounts
/etc
/fstab
13 echo "made it to the rootfs!"
14 strstr
"$CMDLINE" "rd.shell" && sh
-i
16 mount
-n -o remount
,ro
/