From 3b18c9cd155a39c497d110c7a344df543b53a2e4 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Fri, 18 Nov 2011 19:41:18 -0300 Subject: install/base: Add an empty fstab This is mainly for avoid this: [ramfs /]# mount /dev/md0 /mnt/a [ramfs /]# mount -o bind /mnt/a /mnt/b [ramfs /]# mount -o bind,remount,ro /mnt/b warning: can't open /etc/fstab: No such file or directory [ramfs /]# Signed-off-by: Gerardo Exequiel Pozzi --- install/base | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/base b/install/base index db9752e..6c6f747 100644 --- a/install/base +++ b/install/base @@ -13,6 +13,9 @@ build() { add_symlink "/etc/mtab" "/proc/self/mounts" + # Add an empty fstab to avoid mount warning when -o remount is used + >"$BUILDROOT/etc/fstab" + add_file "/lib/initcpio/init_functions" "/init_functions" add_file "/lib/initcpio/init" "/init" add_file "/lib/modprobe.d/usb-load-ehci-first.conf" -- cgit v1.2.3-24-g4f1b