Browse Source

Updated test-init to only create fstab symlink as needed.

master
Victor Lowther 16 years ago
parent
commit
6ce3123192
  1. 4
      test/test-init

4
test/test-init

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