summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-03-05 12:10:31 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-03-05 12:10:31 +0000
commitb560358c42870bfb788189e9265d8f226eaf0510 (patch)
tree0b622bca3b61304b44a9f9397a5456c092df09f9
parent01b0779bf861092d4a5810d8ec374d26a11fd7d1 (diff)
downloadfhs-dirs-b560358c42870bfb788189e9265d8f226eaf0510.tar.gz
init: make /etc/mtab be a symlink to /proc/mounts
-rw-r--r--fhs-dirs.morph1
-rw-r--r--rcS2
2 files changed, 1 insertions, 2 deletions
diff --git a/fhs-dirs.morph b/fhs-dirs.morph
index 1e5fd32..6dd36ab 100644
--- a/fhs-dirs.morph
+++ b/fhs-dirs.morph
@@ -12,6 +12,7 @@
"install -d \"$DESTDIR/etc/init.d\"",
"install -m 744 rcS \"$DESTDIR/etc/rcS\"",
"install -m 644 ld.so.conf \"$DESTDIR/etc/ld.so.conf\"",
+ "ln -s /proc/mounts \"$DESTDIR\"/etc/mtab",
"echo baserock > \"$DESTDIR\"/etc/hostname"
]
}
diff --git a/rcS b/rcS
index 6acafe8..95f1754 100644
--- a/rcS
+++ b/rcS
@@ -1,6 +1,4 @@
#!/bin/sh
-rm /etc/mtab
-touch /etc/mtab
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mkdir -p /dev/pts