copy defaults to container

This commit is contained in:
Tobias Powalowski 2022-03-19 10:07:31 +01:00
parent 1c64240f03
commit 9e5c7951bd
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,7 @@ _clean_container "${1}"
_clean_archboot_cache _clean_archboot_cache
_generate_keyring "${1}" || exit 1 _generate_keyring "${1}" || exit 1
_copy_mirrorlist_and_pacman_conf "${1}" _copy_mirrorlist_and_pacman_conf "${1}"
_copy_archboot_defaults "${1}"
_change_pacman_conf "${1}" || exit 1 _change_pacman_conf "${1}" || exit 1
# enable [testing] if enabled in host # enable [testing] if enabled in host
if grep -q "^\[testing" /etc/pacman.conf; then if grep -q "^\[testing" /etc/pacman.conf; then

View file

@ -158,6 +158,11 @@ _copy_mirrorlist_and_pacman_conf() {
grep -qw 'archboot' /etc/hostname && cp /etc/pacman.conf "${1}"/etc/pacman.conf grep -qw 'archboot' /etc/hostname && cp /etc/pacman.conf "${1}"/etc/pacman.conf
} }
_copy_archboot_defaults() {
echo "Copy archboot defaults to container ..."
! grep -qw 'archboot' /etc/hostname && cp /etc/archboot/defaults "${1}"/etc/archboot/defaults
}
_reproducibility() { _reproducibility() {
echo "Reproducibility changes ..." echo "Reproducibility changes ..."
sed -i -e '/INSTALLDATE/{n;s/.*/0/}' "${1}"/var/lib/pacman/local/*/desc sed -i -e '/INSTALLDATE/{n;s/.*/0/}' "${1}"/var/lib/pacman/local/*/desc