[arch-projects] [RFC] [PATCH] [mkinitcpio] install/base: Add an empty fstab
Gerardo Exequiel Pozzi
vmlinuz386 at yahoo.com.ar
Fri Nov 18 17:48:45 EST 2011
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 at yahoo.com.ar>
---
install/base | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/install/base b/install/base
index db9752e..8e75160 100644
--- a/install/base
+++ b/install/base
@@ -12,6 +12,8 @@ build() {
add_binary /sbin/switch_root
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"
--
1.7.7.3
More information about the arch-projects
mailing list