forked from srbala/fedora-kickstarts
remove the hacks in %post for extlinux
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
parent
932524c849
commit
bc1f075e41
@ -105,9 +105,6 @@ passwd -l root
|
|||||||
# remove the user anaconda forces us to make
|
# remove the user anaconda forces us to make
|
||||||
userdel -r none
|
userdel -r none
|
||||||
|
|
||||||
# Kickstart specifies timeout in seconds; syslinux uses 10ths.
|
|
||||||
# 0 means wait forever, so instead we'll go with 1.
|
|
||||||
sed -i 's/^timeout 10/timeout 1/' /boot/extlinux/extlinux.conf
|
|
||||||
|
|
||||||
# setup systemd to boot to the right runlevel
|
# setup systemd to boot to the right runlevel
|
||||||
echo -n "Setting default runlevel to multiuser text mode"
|
echo -n "Setting default runlevel to multiuser text mode"
|
||||||
@ -225,21 +222,12 @@ echo "-----------------------------------------------------------------------"
|
|||||||
rm -f /var/lib/rpm/__db*
|
rm -f /var/lib/rpm/__db*
|
||||||
|
|
||||||
|
|
||||||
# This is a temporary workaround for
|
|
||||||
# <https://bugzilla.redhat.com/show_bug.cgi?id=1147998>
|
|
||||||
# where sfdisk seems to be messing up the mbr.
|
|
||||||
# Long-term fix is to address this in anaconda directly and remove this.
|
|
||||||
# <https://bugzilla.redhat.com/show_bug.cgi?id=1015931>
|
|
||||||
dd if=/usr/share/syslinux/mbr.bin of=/dev/vda
|
|
||||||
|
|
||||||
|
|
||||||
# FIXME: is this still needed?
|
# FIXME: is this still needed?
|
||||||
echo "Fixing SELinux contexts."
|
echo "Fixing SELinux contexts."
|
||||||
touch /var/log/cron
|
touch /var/log/cron
|
||||||
touch /var/log/boot.log
|
touch /var/log/boot.log
|
||||||
chattr -i /boot/extlinux/ldlinux.sys
|
|
||||||
/usr/sbin/fixfiles -R -a restore
|
/usr/sbin/fixfiles -R -a restore
|
||||||
chattr +i /boot/extlinux/ldlinux.sys
|
|
||||||
|
|
||||||
echo "Zeroing out empty space."
|
echo "Zeroing out empty space."
|
||||||
# This forces the filesystem to reclaim space from deleted files
|
# This forces the filesystem to reclaim space from deleted files
|
||||||
|
Loading…
Reference in New Issue
Block a user