Skip to content

Commit

Permalink
Checking if /var/log is writable before trying to copy live.log to th…
Browse files Browse the repository at this point in the history
…e 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.
  • Loading branch information
rmayr authored and daniel-baumann committed Feb 24, 2009
1 parent f3b9f74 commit aabdbd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/live
Expand Up @@ -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
}

0 comments on commit aabdbd2

Please sign in to comment.