summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-11-18 23:41:18 +0100
committerDave Reisner <dreisner@archlinux.org>2011-11-29 11:56:41 +0100
commit3b18c9cd155a39c497d110c7a344df543b53a2e4 (patch)
tree3489c0086a3bd2a6376ed6923e9e98c33ca013ea /install
parentaf8d88d502b31623414e766d527b71fb062e1f52 (diff)
downloadmkinitcpio-3b18c9cd155a39c497d110c7a344df543b53a2e4.tar.gz
mkinitcpio-3b18c9cd155a39c497d110c7a344df543b53a2e4.tar.xz
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 <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'install')
-rw-r--r--install/base3
1 files changed, 3 insertions, 0 deletions
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"