diff --git a/gebuilder/scripts/initialize/default/00-copy.sh b/gebuilder/scripts/initialize/default/00-copy.sh index feef0c3..d6e4c4e 100755 --- a/gebuilder/scripts/initialize/default/00-copy.sh +++ b/gebuilder/scripts/initialize/default/00-copy.sh @@ -1,5 +1,10 @@ #!/bin/bash +if [ ! -f "/var/lib/gebuilder/roots/stemgentoo/root/" ]; then + error "Stemgen was not initialized" + error exit +fi + if [[ -v DELETE_ON_FAIL ]]; then on_error "rm --one-file-system -r '${ROOT}'"; fi -rsync -a roots/stemgentoo/root/ "${ROOT}" +rsync -a /var/lib/gebuilder/roots/stemgentoo/root/ "${ROOT}" diff --git a/gebuilder/scripts/openstack_image/default/38-enable_updates.sh b/gebuilder/scripts/openstack_image/default/38-enable_updates.sh new file mode 100755 index 0000000..08068a6 --- /dev/null +++ b/gebuilder/scripts/openstack_image/default/38-enable_updates.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +sed -i -e '/auto-sync = no/d' ${OPENSTACK_IMG_MNT}/etc/portage/repos.conf/gentoo