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/2.0.15-1~439 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=cdbdce110d7a9a12ee297a26cfa6a1fde8dd5a4c;p=live-boot-grml.git Create /etc/mtab on the initramfs ASAP. --- 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