mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add local db on container too
This commit is contained in:
parent
b50c3e52f2
commit
d0a36c7e25
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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 ()
|
||||
|
|
Loading…
Reference in a new issue