]>
Commit | Line | Data |
---|---|---|
0e9bb3f3 | 1 | #!/bin/sh |
387bf82e | 2 | export PATH=/sbin:/bin:/usr/sbin:/usr/bin |
2c19a5fa | 3 | strstr() { [ "${1#*"$2"*}" != "$1" ]; } |
07434861 HH |
4 | CMDLINE=$(while read line; do echo $line;done < /proc/cmdline) |
5 | plymouth --quit | |
0e9bb3f3 HH |
6 | exec >/dev/console 2>&1 |
7 | echo "dracut-root-block-success" >/dev/sda | |
8 | export TERM=linux | |
9 | export PS1='initramfs-test:\w\$ ' | |
10 | cat /proc/mdstat | |
11 | [ -f /etc/fstab ] || ln -s /proc/mounts /etc/fstab | |
12 | stty sane | |
07434861 HH |
13 | echo "made it to the rootfs!" |
14 | strstr "$CMDLINE" "rd.shell" && sh -i | |
15 | echo "Powering down." | |
0e9bb3f3 HH |
16 | mount -n -o remount,ro / |
17 | poweroff -f |