diff options
| author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 | 
|---|---|---|
| committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 | 
| commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
| tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/openrc/0009-fix-bootmisc-mv-error.patch | |
| parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) | |
removed idea of repos
Diffstat (limited to 'repo/openrc/0009-fix-bootmisc-mv-error.patch')
| -rw-r--r-- | repo/openrc/0009-fix-bootmisc-mv-error.patch | 27 | 
1 files changed, 27 insertions, 0 deletions
| diff --git a/repo/openrc/0009-fix-bootmisc-mv-error.patch b/repo/openrc/0009-fix-bootmisc-mv-error.patch new file mode 100644 index 0000000..e87f9bb --- /dev/null +++ b/repo/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 | 
