From 5f29e730a34046539dbcfa5fac1a633fb533e3d2 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Wed, 15 Oct 2014 09:24:48 -0400 Subject: [PATCH] updated dd extlinux mbr during post as temporary workaround for bug #1147998 --- fedora-cloud-atomic.ks | 8 ++++++++ fedora-cloud-base.ks | 8 ++++++++ fedora-cloud-experimental.ks | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/fedora-cloud-atomic.ks b/fedora-cloud-atomic.ks index c8caf28..6e10fc0 100644 --- a/fedora-cloud-atomic.ks +++ b/fedora-cloud-atomic.ks @@ -167,6 +167,14 @@ echo "-----------------------------------------------------------------------" rm -f /var/lib/rpm/__db* +# This is a temporary workaround for +# +# where sfdisk seems to be messing up the mbr. +# Long-term fix is to address this in anaconda directly and remove this. +# +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-base.ks b/fedora-cloud-base.ks index 1cbfdc4..a61e82e 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 +# +# where sfdisk seems to be messing up the mbr. +# Long-term fix is to address this in anaconda directly and remove this. +# +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-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 +# +# where sfdisk seems to be messing up the mbr. +# Long-term fix is to address this in anaconda directly and remove this. +# +dd if=/usr/share/syslinux/mbr.bin of=/dev/vda + + echo "Fixing SELinux contexts." touch /var/log/cron touch /var/log/boot.log