From 295519948bf7fb0b64cd5071b4e25d50efb8ef01 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Thu, 13 Jul 2017 20:17:55 -0400 Subject: [PATCH] atomic: temporary workaround for anaconda bug see https://pagure.io/atomic-wg/issue/301 --- fedora-atomic.ks | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fedora-atomic.ks b/fedora-atomic.ks index c7f3622..fde9b70 100644 --- a/fedora-atomic.ks +++ b/fedora-atomic.ks @@ -36,6 +36,14 @@ ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https:// reboot +# temporarily workaround https://pagure.io/atomic-wg/issue/301 +%pre +if ! test -d /ostree/repo; then + mkdir -p /ostree/repo + ostree --repo=/ostree/repo init --mode=bare +fi +%end + %post --erroronfail # See https://github.com/projectatomic/rpm-ostree/issues/42 # Set the ostree repo to the location we want users to upgrade from