From 547d1d8badbefbccdf7c1fe1e4b81b123c114aab Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jan 28 2015 20:48:37 +0000 Subject: Fixup very old fstabs (#1009023) --- 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 \