dd extlinux mbr during post as temporary workaround for bug #1147998

This commit is contained in:
Matthew Miller
2014-10-14 16:00:42 -04:00
parent 8d5f9bb321
commit 7f202a0e53
4 changed files with 32 additions and 0 deletions

View File

@@ -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