]> git.ipfire.org Git - thirdparty/dracut.git/blob - test/TEST-30-ISCSI/client-init.sh
TEST-30-ISCSI/test.sh: factor out client runs
[thirdparty/dracut.git] / test / TEST-30-ISCSI / client-init.sh
1 #!/bin/sh
2 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
3 exec >/dev/console 2>&1
4 export TERM=linux
5 export PS1='initramfs-test:\w\$ '
6 stty sane
7 echo "made it to the rootfs! Powering down."
8 while read dev fs fstype opts rest; do
9 [ "$fstype" != "ext2" ] && continue
10 echo "iscsi-OK $dev $fstype $opts" > /dev/sda
11 break
12 done < /proc/mounts
13 #sh -i
14 poweroff -f