]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Updated test-init to only create fstab symlink as needed.
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 20 Mar 2009 08:51:05 +0000 (03:51 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Fri, 20 Mar 2009 08:51:05 +0000 (03:51 -0500)
test/test-init

index 67563f84ff67949dd397636783408727400a3051..fbcdec47b014e603ce5707f4839c9e72db84a39f 100755 (executable)
@@ -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