From 547d1d8badbefbccdf7c1fe1e4b81b123c114aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 27 Jan 2015 16:56:31 -0500 Subject: [PATCH] Fixup very old fstabs (#1009023) --- systemd.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/systemd.spec b/systemd.spec index cef8fb9..be75461 100644 --- a/systemd.spec +++ b/systemd.spec @@ -478,6 +478,9 @@ mv %{_localstatedir}/lib/backlight %{_localstatedir}/lib/systemd/backlight >/dev # to fail when the link already exists) ln -s /usr/lib/systemd/system/rsyslog.service /etc/systemd/system/syslog.service >/dev/null 2>&1 || : +# Remove spurious /etc/fstab entries from very old installations +sed -i.rpm.bak -r '/^devpts\s+\/dev\/pts\s+devpts\s+defaults\s+/d; /^tmpfs\s+\/dev\/shm\s+tmpfs\s+defaults\s+/d; /^sysfs\s+\/sys\s+sysfs\s+defaults\s+/d; /^proc\s+\/proc\s+proc\s+defaults\s+/d' /etc/fstab + # Services we install by default, and which are controlled by presets. if [ $1 -eq 1 ] ; then systemctl preset \