mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
only include package cache on booted archboot
This commit is contained in:
parent
1b7586428e
commit
683347926d
1 changed files with 2 additions and 1 deletions
|
@ -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 ()
|
||||||
|
|
Loading…
Reference in a new issue