[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: live-boot: mountroot not found



On 06/27/2012 05:28 AM, Ben Armstrong wrote:
> What if a file exists at that path with the same name as the directory? e.g.
> 
> $ touch testfile
> $ mkdir -p testfile
> mkdir: cannot create directory `testfile': File exists

Yes, that's exactly what was happening, due to live-boot creating /var/log/live directory in the
wrong location. Fixed now in git by:

commit 9cec19c534cc2876c9bb2ed0eb990eb5a7bd1c9f
Author: Ben Armstrong <synrg@debian.org>
Date:   Wed Jun 27 07:23:04 2012 -0300

    Fix creation of /var/log/live in correct location.

diff --git a/scripts/boot/mountroot.sh b/scripts/boot/mountroot.sh
index 5383747..69f6f0a 100755
--- a/scripts/boot/mountroot.sh
+++ b/scripts/boot/mountroot.sh
@@ -217,5 +217,5 @@ mountroot ()
        exec 1>&6 6>&-
        exec 2>&7 7>&-
        kill ${tailpid}
-       [ -w "${rootmnt}/var/log/" ] && mkdir -p /var/log/live && cp boot.log
"${rootmnt}/var/log/live" 2>/dev/null
+       [ -w "${rootmnt}/var/log/" ] && mkdir -p "${rootmnt}/var/log/live" && cp boot.log
"${rootmnt}/var/log/live" 2>/dev/null
 }

I have confirmed my vanilla standard amd64 build now boots correctly with this live-boot patch
applied, finishing live-config without errors and performing autologin.

Ben


Reply to: