summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-09-03 16:59:23 +0200
committerDave Reisner <dreisner@archlinux.org>2012-09-17 16:30:59 +0200
commit2b5877dbfb24dedb23cd23ea8dbec1b1a98ad589 (patch)
tree8854191a632b98cbdae717729b81c4664b37b0e6 /functions
parentc0b975a8e3efacd965ec5166af4d572253f51143 (diff)
downloadmkinitcpio-2b5877dbfb24dedb23cd23ea8dbec1b1a98ad589.tar.gz
mkinitcpio-2b5877dbfb24dedb23cd23ea8dbec1b1a98ad589.tar.xz
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 <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions4
1 files changed, 4 insertions, 0 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"