summaryrefslogtreecommitdiff
path: root/aports/openrc/0009-fix-bootmisc-mv-error.patch
diff options
context:
space:
mode:
authorPÁLI Gábor János <pali.gabor@gmail.com>2022-06-25 23:04:28 +0200
committerPÁLI Gábor János <pali.gabor@gmail.com>2022-06-25 23:04:28 +0200
commit373d8e3dcb62f76a5c2b3608251529c608b98b1d (patch)
tree9d3c179ffd2b2fbd0aaf5b2c98deba8a241c2b46 /aports/openrc/0009-fix-bootmisc-mv-error.patch
parent2e6c1798e14737745b36726419863180566d53de (diff)
downloadfreebsd-wifibox-alpine-373d8e3dcb62f76a5c2b3608251529c608b98b1d.zip
Move to Linux 5.15.49 + Alpine 3.16.0.
Diffstat (limited to 'aports/openrc/0009-fix-bootmisc-mv-error.patch')
-rw-r--r--aports/openrc/0009-fix-bootmisc-mv-error.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/aports/openrc/0009-fix-bootmisc-mv-error.patch b/aports/openrc/0009-fix-bootmisc-mv-error.patch
new file mode 100644
index 0000000..e87f9bb
--- /dev/null
+++ b/aports/openrc/0009-fix-bootmisc-mv-error.patch
@@ -0,0 +1,27 @@
+From: Dermot Bradley <dermot_bradley@yahoo.com>
+Date: Sat, 29 Jan 2022 19:28 +0000
+Subject: prevent a bootmisc trying to move a nonexistant file
+
+During boot if the "previous_dmesg" setting is enabled in
+/etc/conf.d/bootmisc then during the 1st boot of a machine the
+bootmisc init.d script will attempt to move a nonexistant dmesg
+file, so generating an error on the console.
+
+Modify the script to only move an existing file.
+
+Upstream has merged this as PR 496 so it will be in the next release.
+
+---
+
+diff -aur a/init.d/bootmisc.in b/init.d/bootmisc.in
+--- a/init.d/bootmisc.in
++++ b/init.d/bootmisc.in
+@@ -226,7 +226,7 @@
+ 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