mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-27 13:33:09 +00:00
dd extlinux mbr during post as temporary workaround for bug #1147998
This commit is contained in:
parent
8d5f9bb321
commit
7f202a0e53
@ -122,6 +122,15 @@ echo "-----------------------------------------------------------------------"
|
||||
# Note that running rpm recreates the rpm db files which aren't needed/wanted
|
||||
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
|
||||
|
||||
|
||||
echo "Zeroing out empty space."
|
||||
# This forces the filesystem to reclaim space from deleted files
|
||||
dd bs=1M if=/dev/zero of=/var/tmp/zeros || :
|
||||
|
@ -194,6 +194,14 @@ echo "-----------------------------------------------------------------------"
|
||||
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
|
||||
|
||||
|
||||
echo "Fixing SELinux contexts."
|
||||
touch /var/log/cron
|
||||
touch /var/log/boot.log
|
||||
|
@ -200,6 +200,13 @@ echo "-----------------------------------------------------------------------"
|
||||
# Note that running rpm recreates the rpm db files which aren't needed/wanted
|
||||
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
|
||||
|
||||
|
||||
echo "Fixing SELinux contexts."
|
||||
touch /var/log/cron
|
||||
|
@ -192,6 +192,14 @@ echo "-----------------------------------------------------------------------"
|
||||
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
|
||||
|
||||
|
||||
echo "Fixing SELinux contexts."
|
||||
touch /var/log/cron
|
||||
touch /var/log/boot.log
|
||||
|
Loading…
Reference in New Issue
Block a user