mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
copy defaults to container
This commit is contained in:
parent
1c64240f03
commit
9e5c7951bd
2 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,7 @@ _clean_container "${1}"
|
|||
_clean_archboot_cache
|
||||
_generate_keyring "${1}" || exit 1
|
||||
_copy_mirrorlist_and_pacman_conf "${1}"
|
||||
_copy_archboot_defaults "${1}"
|
||||
_change_pacman_conf "${1}" || exit 1
|
||||
# enable [testing] if enabled in host
|
||||
if grep -q "^\[testing" /etc/pacman.conf; then
|
||||
|
|
|
@ -158,6 +158,11 @@ _copy_mirrorlist_and_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() {
|
||||
echo "Reproducibility changes ..."
|
||||
sed -i -e '/INSTALLDATE/{n;s/.*/0/}' "${1}"/var/lib/pacman/local/*/desc
|
||||
|
|
Loading…
Reference in a new issue