diff --git a/README.md b/README.md index 773c59ac7..d2e04c754 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,6 @@ files. Another functionality this source code provides includes: * [`network-scripts`](https://github.com/fedora-sysv/initscripts/tree/master/network-scripts) - **legacy** scripts for manipulating of network devices - * [`readonly-root`](https://github.com/fedora-sysv/initscripts/blob/master/usr/lib/systemd/readonly-root) - service for configuring the read-only root support * [`netconsole`](https://github.com/fedora-sysv/initscripts/blob/master/etc/rc.d/init.d/netconsole) - service for initializing of network console logging For the *[RPM](https://en.wikipedia.org/wiki/Rpm_(software))* based distributions diff --git a/etc/statetab b/etc/statetab deleted file mode 100644 index f06981ac6..000000000 --- a/etc/statetab +++ /dev/null @@ -1,12 +0,0 @@ -# -# A list of paths which should be bind-mounted from a -# partition dedicated to persistent data -# -# See $STATE_LABEL in /etc/sysconfig/readonly-root -# -# Examples: -# -# /root -# /etc/ssh -# /var/spool/mail -# diff --git a/initscripts.spec b/initscripts.spec index a098c9b0e..8f50d217e 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -153,28 +153,6 @@ This packages provides a 'netconsole' service for loading of netconsole kernel module with the configured parameters. The netconsole kernel module itself then allows logging of kernel messages over the network. -# --------------- - -%package -n readonly-root -Summary: Service for configuring read-only root support -Requires: %{name} = %{version}-%{release} -BuildArch: noarch - -%shared_requirements - -Requires: cpio -Requires: findutils -Requires: hostname -Requires: iproute -Requires: ipcalc -Requires: util-linux - -Obsoletes: %{name} < 9.82-2 - -%description -n readonly-root -This package provides script & configuration file for setting up read-only root -support. Additional configuration is required after installation. - # === BUILD INSTRUCTIONS ====================================================== %prep @@ -247,17 +225,6 @@ fi %postun -n netconsole-service %systemd_postun netconsole.service -# --------------- - -%post -n readonly-root -%systemd_post readonly-root.service - -%preun -n readonly-root -%systemd_preun readonly-root.service - -%postun -n readonly-root -%systemd_postun readonly-root.service - # === PACKAGING INSTRUCTIONS ================================================== %files -f %{name}.lang @@ -332,20 +299,6 @@ fi %{_libexecdir}/netconsole %{_prefix}/lib/systemd/system/netconsole.service -# --------------- - -%files -n readonly-root -%dir %{_sharedstatedir}/stateless -%dir %{_sharedstatedir}/stateless/state -%dir %{_sharedstatedir}/stateless/writable - -%config(noreplace) %{_sysconfdir}/rwtab -%config(noreplace) %{_sysconfdir}/statetab -%config(noreplace) %{_sysconfdir}/sysconfig/readonly-root - -%{_libexecdir}/readonly-root -%{_prefix}/lib/systemd/system/readonly-root.service - # ============================================================================= %changelog diff --git a/usr/lib/systemd/system/readonly-root.service b/usr/lib/systemd/system/readonly-root.service deleted file mode 100644 index 26d4a1188..000000000 --- a/usr/lib/systemd/system/readonly-root.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=Configure read-only root support -DefaultDependencies=no -Conflicts=shutdown.target -Before=shutdown.target emergency.service emergency.target systemd-tmpfiles-setup.service local-fs.target systemd-random-seed.service -After=systemd-remount-fs.service - -[Service] -ExecStart=/usr/libexec/readonly-root -Type=oneshot -TimeoutSec=0 -RemainAfterExit=yes - -[Install] -WantedBy=local-fs.target