parent
10ebc25bcd
commit
6312c4d556
14
rc.local
Normal file
14
rc.local
Normal file
@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
|
@ -63,6 +63,7 @@ Source21: macros.sysusers
|
||||
Source22: sysusers.attr
|
||||
Source23: sysusers.prov
|
||||
Source24: sysusers.generate-pre.sh
|
||||
Source25: rc.local
|
||||
|
||||
%if 0
|
||||
GIT_DIR=../../src/systemd/.git git format-patch-ab --no-signature -M -N v235..v235-stable
|
||||
@ -537,6 +538,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 %{SOURCE25} %{buildroot}%{_sysconfdir}/rc.d/rc.local
|
||||
ln -s rc.d/rc.local %{buildroot}%{_sysconfdir}/rc.local
|
||||
|
||||
# Install yum protection fragment
|
||||
install -Dm0644 %{SOURCE4} %{buildroot}/etc/dnf/protected.d/systemd.conf
|
||||
|
||||
@ -595,6 +601,8 @@ python3 %{SOURCE2} %buildroot <<EOF
|
||||
%ghost %config(noreplace) /etc/locale.conf
|
||||
%ghost %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
|
||||
|
Loading…
Reference in New Issue
Block a user