From: Ray Strode Date: Fri, 24 Mar 2017 19:15:03 +0000 (-0400) Subject: Revert "Recreate boot log at each boot instead of appending" X-Git-Tag: 0.9.3~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61ae21f1e82b1ee8955b6fceff822e0891f69718;p=thirdparty%2Fplymouth.git Revert "Recreate boot log at each boot instead of appending" This reverts commit 9abbd88835a181cda1427d61d92ef5685ad8a81b. I'm getting requests to keep old boot logs around. If anyone wants to carve up boot.log, they can just use logrotate.d --- diff --git a/src/libply/ply-logger.c b/src/libply/ply-logger.c index 789ad4ef..429e1ff1 100644 --- a/src/libply/ply-logger.c +++ b/src/libply/ply-logger.c @@ -40,7 +40,7 @@ #include "ply-list.h" #ifndef PLY_LOGGER_OPEN_FLAGS -#define PLY_LOGGER_OPEN_FLAGS (O_WRONLY | O_TRUNC | O_CREAT | O_NOFOLLOW | O_CLOEXEC) +#define PLY_LOGGER_OPEN_FLAGS (O_WRONLY | O_APPEND | O_CREAT | O_NOFOLLOW | O_CLOEXEC) #endif #ifndef PLY_LOGGER_MAX_INJECTION_SIZE