From: Victor Lowther Date: Fri, 20 Mar 2009 08:51:05 +0000 (-0500) Subject: Updated test-init to only create fstab symlink as needed. X-Git-Tag: 0.1~282^2~12^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ce3123192b2941738910dc7d7d2d828f49fc348;p=thirdparty%2Fdracut.git Updated test-init to only create fstab symlink as needed. --- diff --git a/test/test-init b/test/test-init index 67563f84f..fbcdec47b 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