From 7313d17088aef2afea3448e81ef6a68b9d45dcab Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Mon, 20 Nov 2017 20:33:32 +0100 Subject: space_server: update to Fedora 27 --- roles/space_server/bootstrap.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'roles/space_server/bootstrap.sh') diff --git a/roles/space_server/bootstrap.sh b/roles/space_server/bootstrap.sh index 8fbc399..f80a454 100755 --- a/roles/space_server/bootstrap.sh +++ b/roles/space_server/bootstrap.sh @@ -39,7 +39,8 @@ set -e set -x -release=26 +release=27 +secrets='/etc/ansible/secrets.yml' dest="/mnt/fedora$release" if [[ -e "$dest" ]]; then echo "Destination '$dest' already exists. Aborting." >&2 @@ -51,11 +52,16 @@ btrfs subvolume create "$dest" dnf \ --assumeyes \ --installroot="$dest" \ + --setopt=install_weak_deps=False \ --releasever=$release \ --disablerepo='*' \ --enablerepo=fedora \ --enablerepo=updates \ - install dnf python2-dnf python-netaddr ansible + install dnf git python2-dnf python-netaddr ansible + +if [[ -f "$secrets" ]]; then + install -m660 "$secrets" "$dest$secrets" +fi systemd-nspawn -D "$dest" -M space -E ANSIBLE_FORCE_COLOR=1 \ --bind /boot --bind /home -- \ -- cgit v1.2.1