only include package cache on booted archboot

This commit is contained in:
Tobias Powalowski 2021-09-28 07:34:36 +02:00
parent 1b7586428e
commit 683347926d

View file

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