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