From: Rene Mayrhofer Date: Tue, 24 Feb 2009 13:32:12 +0000 (+0100) Subject: Checking if /var/log is writable before trying to copy live.log to the newly mounted... X-Git-Tag: debian/2.0.15-1~341 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=275dd05ee92e5312fd7ae40e7ef60b3073ba4c65;p=live-boot-grml.git Checking if /var/log is writable before trying to copy live.log to the newly mounted root filesystem (Closes: #516914). When using the "exposedroot skipunion" options, then /var/log may not be writable at this time, resulting in an error message during bootup. --- diff --git a/scripts/live b/scripts/live index df104ef..933eb00 100755 --- a/scripts/live +++ b/scripts/live @@ -1585,5 +1585,5 @@ mountroot () exec 1>&6 6>&- exec 2>&7 7>&- kill ${tailpid} - cp live.log "${rootmnt}/var/log/" + [ -w "${rootmnt}/var/log/" ] && cp live.log "${rootmnt}/var/log/" 2>/dev/null }