]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Revert "Recreate boot log at each boot instead of appending"
authorRay Strode <rstrode@redhat.com>
Fri, 24 Mar 2017 19:15:03 +0000 (15:15 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 24 Mar 2017 19:15:03 +0000 (15:15 -0400)
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

src/libply/ply-logger.c

index 789ad4efff057131a30370a4b9d9374bf88880db..429e1ff1f1e057ae75d49eb8d6c2f4b05d6f0087 100644 (file)
@@ -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