commit 7f202a0e531ea178243c563a721c0c248af87219
Author: Matthew Miller <mattdm(a)mattdm.org>
Date: Tue Oct 14 16:00:42 2014 -0400
dd extlinux mbr during post as temporary workaround for bug #1147998
fedora-cloud-atomic.ks | 9 +++++++++
fedora-cloud-base.ks | 8 ++++++++
fedora-cloud-bigdata.ks | 7 +++++++
fedora-cloud-experimental.ks | 8 ++++++++
4 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/fedora-cloud-atomic.ks b/fedora-cloud-atomic.ks
index c77ffec..ae288b3 100644
--- a/fedora-cloud-atomic.ks
+++ b/fedora-cloud-atomic.ks
@@ -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 || :
diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks
index 6a5a1de..f086a4b 100644
--- a/fedora-cloud-base.ks
+++ b/fedora-cloud-base.ks
@@ -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
diff --git a/fedora-cloud-bigdata.ks b/fedora-cloud-bigdata.ks
index b8315bb..1a9ef6a 100644
--- a/fedora-cloud-bigdata.ks
+++ b/fedora-cloud-bigdata.ks
@@ -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
diff --git a/fedora-cloud-experimental.ks b/fedora-cloud-experimental.ks
index b865c4c..fb902a5 100644
--- a/fedora-cloud-experimental.ks
+++ b/fedora-cloud-experimental.ks
@@ -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