diff options
-rw-r--r-- | init.d/bootmisc.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index 4a2e7f02..233dfc55 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -226,7 +226,7 @@ start() case "$RC_SYS" in VSERVER|OPENVZ|LXC|SYSTEMD-NSPAWN) ;; *) - if yesno ${previous_dmesg:-no}; then + if yesno ${previous_dmesg:-no} && [ -e /var/log/dmesg ]; then mv /var/log/dmesg /var/log/dmesg.old fi dmesg > /var/log/dmesg |