Fixup very old fstabs (#1009023)
This commit is contained in:
parent
6cf221b459
commit
547d1d8bad
@ -478,6 +478,9 @@ mv %{_localstatedir}/lib/backlight %{_localstatedir}/lib/systemd/backlight >/dev
|
|||||||
# to fail when the link already exists)
|
# to fail when the link already exists)
|
||||||
ln -s /usr/lib/systemd/system/rsyslog.service /etc/systemd/system/syslog.service >/dev/null 2>&1 || :
|
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.
|
# Services we install by default, and which are controlled by presets.
|
||||||
if [ $1 -eq 1 ] ; then
|
if [ $1 -eq 1 ] ; then
|
||||||
systemctl preset \
|
systemctl preset \
|
||||||
|
Loading…
Reference in New Issue
Block a user