add RHEL-7 compatible rc.local
Resolves: RHEL-50552
This commit is contained in:
parent
867e1102de
commit
2444ccf6bf
13
rc.local
Normal file
13
rc.local
Normal file
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user