Fix #44: Do not clean up /home/build after successful build

This adjusts the /etc/abuild.conf automatically during build init.
Zap your build chroots now, to benefit from this commit.
This commit is contained in:
Oliver Smith 2017-06-06 16:26:44 +02:00
parent fdcaa2c75c
commit eac1b69f0e
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 5 additions and 0 deletions

View File

@ -76,5 +76,10 @@ def init(args, suffix="native"):
# Add user to group abuild
pmb.chroot.root(args, ["adduser", "user", "abuild"], suffix)
# abuild.conf: Don't clean the build folder after building, so we can
# inspect it afterwards for debugging
pmb.chroot.root(args, ["sed", "-i", "-e", "s/^CLEANUP=.*/CLEANUP=''/",
"/etc/abuild.conf"], suffix)
# Mark the chroot as initialized
pmb.chroot.root(args, ["touch", marker], suffix)