From 2b5877dbfb24dedb23cd23ea8dbec1b1a98ad589 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 3 Sep 2012 10:59:23 -0400 Subject: install fstab/mtab as part of base layout These are low level enough that they should be part of the base layout, similar to the filesystem package in userspace. Later hooks can easily override these, if they really want to. Signed-off-by: Dave Reisner --- functions | 4 ++++ install/base | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/functions b/functions index eee09ec..4f25a86 100644 --- a/functions +++ b/functions @@ -630,6 +630,10 @@ initialize_buildroot() { # kernel module dir install -dm755 "$workdir/root/usr/lib/modules/$kernver/kernel" + # mount tables + ln -s /proc/self/mounts "$workdir/root/etc/mtab" + >"$workdir/root/etc/fstab" + # indicate that this is an initramfs >"$workdir/root/etc/initrd-release" diff --git a/install/base b/install/base index 7bb23a8..02678e9 100644 --- a/install/base +++ b/install/base @@ -19,11 +19,6 @@ build() { add_binary mount add_binary switch_root - add_symlink "/etc/mtab" "/proc/self/mounts" - - # Add an empty fstab for mount and fsck - >"$BUILDROOT/etc/fstab" - add_file "/usr/lib/initcpio/init_functions" "/init_functions" add_file "/usr/lib/initcpio/init" "/init" add_file "/usr/lib/modprobe.d/usb-load-ehci-first.conf" -- cgit v1.2.3-24-g4f1b