summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
Diffstat (limited to 'ch')
-rwxr-xr-xch7
1 files changed, 7 insertions, 0 deletions
diff --git a/ch b/ch
index 2211fb7..b76acaa 100755
--- a/ch
+++ b/ch
@@ -46,6 +46,11 @@ if [[ ! -d "$CHROOTS" ]]; then
return 1
fi
+# Always build official packages reproducibly
+if [[ ! -v SOURCE_DATE_EPOCH ]]; then
+ export SOURCE_DATE_EPOCH=$(date +%s)
+fi
+
__genchroot() {
sudo btrfs subvolume snapshot "$chrootdir/root" "$copydir"
}
@@ -175,6 +180,7 @@ chclean() {
continue
fi
+ sudo btrfs subvolume delete "$copy/var/lib/portables" || true
sudo btrfs subvolume delete "$copy/var/lib/machines" || true
sudo btrfs subvolume delete "$copy"
sudo rm -f "${copy%/}.lock"
@@ -184,6 +190,7 @@ chclean() {
chclean-single() {
__chrootalias_resolve_create "$1" || return
if [[ -e $copydir ]]; then
+ sudo btrfs subvolume delete "$copydir/var/lib/portables" || true
sudo btrfs subvolume delete "$copydir/var/lib/machines" || true
sudo btrfs subvolume delete "$copydir"
sudo rm -f "${copydir%/}.lock"