Generate symlink /etc/mtab pointing to /proc/mounts [Closes: issue1277]
authorMichael Prokop <mika@grml.org>
Thu, 26 Sep 2013 19:12:32 +0000 (21:12 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 26 Sep 2013 19:51:36 +0000 (21:51 +0200)
commit9e95af677f3f9fc2be8529b76875678fca8d80d6
treec8d66f16c527107233a3c474d5ba52a04d4b3d5b
parent5ea2be0022dd5f72c916f9f37a2e66bf3460b5b9
Generate symlink /etc/mtab pointing to /proc/mounts [Closes: issue1277]

We don't have /etc/mtab on our rootfs by default and Debian's
initscript package provides a way to generate the /etc/mtab
symlink via its /etc/init.d/checkroot.sh init script. We don't
use this init script in Grml's live system though (e.g. to not
enable swap partitions by default).

Also /etc/init.d/mountkernfs.sh creates an *empty* /etc/mtab file
on bootup if /etc/mtab doesn't exist yet. Last but not least
live-boot's /lib/live/boot/9990-aaa-fixme.sh as well as brltty's
/scripts/init-premount/brltty [see #724695] do some further hacks
- so let's just force generation of symlink /etc/mtab pointing to
/proc/mounts to make sure the system is in a sane state.

While at it drop deprecated /live/cow related code for /etc/mtab
handling.

Thanks: Michael Biebl for the initial hint
regarding the "df: no file systems processed" issue
grml-autoconfig