aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2016-06-22 21:07:26 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-05 15:24:38 +0200
commit25a503272366b8a0bc07a09ca493d25577579c92 (patch)
treecc76a415f08480425a1127dbd531154fa2e6f98c /system
parentfaece0a4259eecaec08af2ce43e4334f3fd1e6c3 (diff)
downloadbuildroot-25a503272366b8a0bc07a09ca493d25577579c92.tar.gz
buildroot-25a503272366b8a0bc07a09ca493d25577579c92.tar.bz2
system/skeleton: update etc/mtab with a more sensible link
Currently, our /etc/mtab points to /proc/mounts. This was all neat so far, and was good for a sysv-like init system. However, the way today is to point it at /proc/self/mounts, the per-process mount tab. Additionnally, that's what systemd expects. If /etc/mtab is not a symlink to ../proc/self/mounts and the rootfs is readonly, systemd would whine loudly (and a service unit would be marked failed). Since it works well for sysv-like init systems too, just use that. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: Romain Naour <romain.naour@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'system')
l---------system/skeleton/etc/mtab2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/skeleton/etc/mtab b/system/skeleton/etc/mtab
index 4c0a0948bc..5c4677a608 120000
--- a/system/skeleton/etc/mtab
+++ b/system/skeleton/etc/mtab
@@ -1 +1 @@
-/proc/mounts \ No newline at end of file
+../proc/self/mounts \ No newline at end of file