summaryrefslogtreecommitdiff
path: root/scripts/live
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2009-02-24 14:32:12 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:04 +0100
commit275dd05ee92e5312fd7ae40e7ef60b3073ba4c65 (patch)
treef7385facea512c30cb6424bc498cb9666a154d79 /scripts/live
parentce0b33407eac1411ab2ca7b9e985f39e2561b098 (diff)
downloadlive-boot-275dd05ee92e5312fd7ae40e7ef60b3073ba4c65.tar.gz
live-boot-275dd05ee92e5312fd7ae40e7ef60b3073ba4c65.zip
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.
Diffstat (limited to 'scripts/live')
-rwxr-xr-xscripts/live2
1 files changed, 1 insertions, 1 deletions
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
}