From 275dd05ee92e5312fd7ae40e7ef60b3073ba4c65 Mon Sep 17 00:00:00 2001 From: Rene Mayrhofer Date: Tue, 24 Feb 2009 14:32:12 +0100 Subject: [PATCH] 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. --- scripts/live | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.1.4