add local db on container too

This commit is contained in:
Tobias Powalowski 2021-09-28 20:35:35 +02:00
parent b50c3e52f2
commit d0a36c7e25
2 changed files with 2 additions and 2 deletions

View file

@ -227,7 +227,7 @@ build ()
add_full_dir "/usr/share/pacman/keyrings"
add_full_dir "/usr/share/makepkg"
# add local installed pacman database in container mode
[[ "$(cat /etc/hostname)" == "archboot" ]] && add_full_dir "/var/lib/pacman/local"
[[ "$(cat /etc/hostname)" == "archboot" || ! -e "/etc/hostname" ]] && add_full_dir "/var/lib/pacman/local"
### fix file
add_file "/usr/share/file/misc/magic.mgc"

View file

@ -17,7 +17,7 @@ build ()
add_binary "/usr/bin/isoinfo"
add_binary "/usr/bin/mktorrent"
# only include cachedir on booted archboot
[[ "$(cat /etc/hostname)" == "archboot" ]] && add_full_dir "/var/cache/pacman/pkg"
[[ "$(cat /etc/hostname)" == "archboot" || && add_full_dir "/var/cache/pacman/pkg"
}
help ()