dracut/test/test-init

12 lines
257 B
Bash
Executable File

#!/bin/sh
exec >/dev/console 2>&1
export TERM=linux
export PS1='initramfs-test:\w\$ '
[ -f /etc/fstab ] || ln -s /proc/mounts /etc/fstab
stty sane
echo "made it to the rootfs!"
echo 3 >/proc/sys/vm/drop_caches
free
sh -i
mount -n -o remount,ro /
poweroff -f