mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-28 10:55:18 +03:00
14 lines
319 B
Bash
Executable File
14 lines
319 B
Bash
Executable File
#!/bin/sh
|
|
exec >/dev/console 2>&1
|
|
export TERM=linux
|
|
export PS1='initramfs-test:\w\$ '
|
|
stty sane
|
|
echo "made it to the rootfs! Powering down."
|
|
while read dev fs fstype opts rest; do
|
|
[ "$fstype" != "ext2" ] && continue
|
|
echo "iscsi-OK $dev $fstype $opts" > /dev/sda
|
|
break
|
|
done < /proc/mounts
|
|
#sh -i
|
|
poweroff -f
|