From: Marco Amadori Date: Mon, 15 Sep 2008 14:30:35 +0000 (+0200) Subject: Create /etc/mtab on the initramfs ASAP. X-Git-Tag: debian/1.139.1-3~14 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=7d7ab5ab6413b985b36ed90e5c62d212e58ff01a;p=live-boot-grml.git Create /etc/mtab on the initramfs ASAP. Signed-off-by: Marco Amadori --- diff --git a/scripts/live b/scripts/live index 418a854..ade7c46 100755 --- a/scripts/live +++ b/scripts/live @@ -21,6 +21,17 @@ HOSTNAME="host" mkdir -p "${mountpoint}" +# Create /etc/mtab for debug purpose and future syncs +if [ ! -d /etc ] +then + mkdir /etc/ +fi + +if [ ! -f /etc/mtab ] +then + touch /etc/mtab +fi + [ -f /etc/live.conf ] && . /etc/live.conf export USERNAME USERFULLNAME HOSTNAME