[Nix-dev] fsck try to find /etc/fstab

Nicolas Pierron nicolas.b.pierron at gmail.com
Sun Oct 28 16:59:53 CET 2007


Hi,

Each time I am starting my laptop I have got a huge bip because fsck
is worried about my laptop safety. This is due to the missing of the
file /etc/fstab

I have made a small patch which use the generated file /etc/mtab
instead of /etc/fstab. Therefore a bip could be made at the first boot
because the file is generated at the Stage 2 and the fsck is done at
the Stage 1. So I can start my laptop with no sound which useful for
students like me ;p

Index: boot/boot-stage-1-init.sh
===================================================================
--- boot/boot-stage-1-init.sh   (revision 9536)
+++ boot/boot-stage-1-init.sh   (working copy)
@@ -103,7 +103,7 @@
     fi

     if test -n "$mustCheck"; then
-        fsck -C -a "$device"
+        FSTAB_FILE="/etc/mtab" fsck -C -a "$device"
         fsckResult=$?

         if test $(($fsckResult | 2)) = $fsckResult; then


-- 
Nicolas Pierron



More information about the nix-dev mailing list