From cdbdce110d7a9a12ee297a26cfa6a1fde8dd5a4c Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Mon, 15 Sep 2008 16:30:35 +0200 Subject: [PATCH] Create /etc/mtab on the initramfs ASAP. --- scripts/live | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.1.4