diff --git a/rc.local b/rc.local new file mode 100644 index 0000000..a7e0ad2 --- /dev/null +++ b/rc.local @@ -0,0 +1,13 @@ +#!/bin/bash +# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES +# +# It is highly advisable to create own systemd services or udev rules +# to run scripts during boot instead of using this file. +# +# In contrast to previous versions due to parallel execution during boot +# this script will NOT be run after all other services. +# +# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure +# that this script will be executed during boot. + +touch /var/lock/subsys/local diff --git a/split-files.py b/split-files.py index 5337c1a..8f7079f 100644 --- a/split-files.py +++ b/split-files.py @@ -22,6 +22,8 @@ known_files = ''' %ghost %config(noreplace) /etc/locale.conf %ghost %attr(0444,root,root) %config(noreplace) /etc/machine-id %ghost %config(noreplace) /etc/machine-info +%config(noreplace) %{_sysconfdir}/rc.d/rc.local +%{_sysconfdir}/rc.local %ghost %attr(0700,root,root) %dir /var/cache/private %ghost %attr(0700,root,root) %dir /var/lib/private %ghost %dir /var/lib/private/systemd diff --git a/systemd.spec b/systemd.spec index 4de7a46..3331064 100644 --- a/systemd.spec +++ b/systemd.spec @@ -93,6 +93,8 @@ Source24: sysusers.generate-pre.sh Source25: 98-default-mac-none.link +Source26: rc.local + %if 0 GIT_DIR=../../src/systemd/.git git format-patch-ab --no-signature -M -N v235..v235-stable i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done|xclip @@ -869,6 +871,11 @@ touch %{buildroot}%{_sysconfdir}/udev/hwdb.bin touch %{buildroot}%{_localstatedir}/lib/systemd/random-seed touch %{buildroot}%{_localstatedir}/lib/private/systemd/journal-upload/state +# Install rc.local +mkdir -p %{buildroot}%{_sysconfdir}/rc.d/ +install -m 0644 %{SOURCE26} %{buildroot}%{_sysconfdir}/rc.d/rc.local +ln -s rc.d/rc.local %{buildroot}%{_sysconfdir}/rc.local + # Install yum protection fragment install -Dm0644 %{SOURCE5} %{buildroot}/etc/dnf/protected.d/systemd.conf