From 6ce3123192b2941738910dc7d7d2d828f49fc348 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Fri, 20 Mar 2009 03:51:05 -0500 Subject: [PATCH] Updated test-init to only create fstab symlink as needed. --- test/test-init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-init b/test/test-init index 67563f84..fbcdec47 100755 --- a/test/test-init +++ b/test/test-init @@ -2,11 +2,11 @@ exec >/dev/console 2>&1 export TERM=linux export PS1='initramfs-test:\w\$ ' -ln -s /proc/mounts /etc/fstab +[ -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 -o remount,ro / +mount -n -o remount,ro / poweroff -f \ No newline at end of file