diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-08-11 08:55:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-08-11 08:55:40 +0000 |
commit | 4de765f1eee31d2fd44a2e617df79c9146e66297 (patch) | |
tree | 8d6f40803498b0cb0b4ceb839337de5ec5d2f237 /share/scripts | |
parent | Releasing debian version 20190413-4. (diff) | |
download | open-infrastructure-compute-tools-4de765f1eee31d2fd44a2e617df79c9146e66297.tar.xz open-infrastructure-compute-tools-4de765f1eee31d2fd44a2e617df79c9146e66297.zip |
Merging upstream version 20190811.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | share/scripts/debconf | 20 | ||||
-rwxr-xr-x | share/scripts/debconf.d/0003-debconf | 7 |
2 files changed, 16 insertions, 11 deletions
diff --git a/share/scripts/debconf b/share/scripts/debconf index b4b5e18..f3632f4 100755 --- a/share/scripts/debconf +++ b/share/scripts/debconf @@ -126,7 +126,7 @@ then exit 1 fi -Start () +Mount () { # Mounting rw bind mounts if [ -n "${BIND}" ] @@ -182,12 +182,9 @@ Start () mount -t overlay overlay-${NAME} -olowerdir="${DIRECTORY_LOWER}",upperdir="${DIRECTORY_UPPER}",workdir="${DIRECTORY_WORK}" "${DIRECTORY_MERGED}" done fi - - # Trap function - trap 'Stop' EXIT HUP INT QUIT TERM } -Stop () +Umount () { # Unmounting overlay mounts if [ -n "${CNT_OVERLAY}" ] @@ -359,7 +356,7 @@ Debootstrap () INCLUDE="dbus" # apt repositories - INCLUDE="${INCLUDE} gnupg" + INCLUDE="${INCLUDE},gnupg" if ( echo "${MIRROR}" | grep -qs '^https' ) || \ ( echo "${PARENT_MIRROR}" | grep -qs '^https' ) @@ -398,7 +395,7 @@ EOF progress-linux) cat > "${DIRECTORY}/progress-linux.cfg" << EOF -progress-linux progress-linux/archives multiselect ${ARCHIVES} +progress-linux progress-linux/archives multiselect $(echo ${ARCHIVES} | sed -e 's| |, |g') progress-linux progress-linux/archive-areas multiselect $(echo ${ARCHIVE_AREAS} | sed -e 's|,| |g') EOF @@ -528,7 +525,7 @@ EOF progress-linux) cat > "${DIRECTORY}/progress-linux.cfg" << EOF -progress-linux progress-linux/archives multiselect ${ARCHIVES} +progress-linux progress-linux/archives multiselect $(echo ${ARCHIVES} | sed -e 's| |, |g') progress-linux progress-linux/archive-areas multiselect $(echo ${ARCHIVE_AREAS} | sed -e 's|,| |g') EOF @@ -1082,6 +1079,9 @@ Commands () esac } +# Trap function +trap 'Umount' EXIT HUP INT QUIT TERM + umask 0022 export NAME @@ -1129,7 +1129,7 @@ Cleanup_system "${CACHE}/${DISTRIBUTION}_${ARCHITECTURE}" mkdir -p "${MACHINES}" cp -a "${CACHE}/${DISTRIBUTION}_${ARCHITECTURE}" "${MACHINES}/${NAME}" -Start +Mount Configure_system "${MACHINES}/${NAME}" Configure_network "${MACHINES}/${NAME}" @@ -1138,8 +1138,6 @@ Cleanup_system "${MACHINES}/${NAME}" Commands "${MACHINES}/${NAME}" -Stop - # remove debconf temporary files rm --preserve-root --one-file-system -rf "${DEBCONF_TMPDIR}" rmdir --ignore-fail-on-non-empty "/tmp/${SOFTWARE}" 2>&1 || true diff --git a/share/scripts/debconf.d/0003-debconf b/share/scripts/debconf.d/0003-debconf index 02f80a6..1e0a99a 100755 --- a/share/scripts/debconf.d/0003-debconf +++ b/share/scripts/debconf.d/0003-debconf @@ -1229,6 +1229,13 @@ Internal_options () echo "BIND=\"${BIND}\"" >> "${DEBCONF_TMPDIR}/debconf.default" + if db_get container/bind-ro + then + BIND_RO="${RET}" # string (w/ empty) + fi + + echo "BIND_RO=\"${BIND_RO}\"" >> "${DEBCONF_TMPDIR}/debconf.default" + if db_get container/overlay then CNT_OVERLAY="${RET}" # string (w/ empty) |