diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-12-13 13:45:15 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-12-13 13:45:15 +0100 |
commit | 918db41262b1fc4a0d31f1a5bfcfd5aaf3abee2f (patch) | |
tree | 54845ac42f3e9bc8d2003b36cb24bc0126fec09c | |
parent | 8f4fce3b2353acee9aa50951c3901f45fe515f93 (diff) | |
download | ick-918db41262b1fc4a0d31f1a5bfcfd5aaf3abee2f.tar.gz |
Set $HOME for pbuilder explicitly
Previously, because we run sudo -E, pbuilder was inheriting the real
$HOME. However, since we're running in a chroot, /home/ick didn't
exist, and this caused a new apt or aptitude to fail, as it wants to
create $HOME/.cache (that seems like a stupid idea, but whatever).
We now set HOME=/root, which should work fine.
-rwxr-xr-x | icklib/cleanly | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/icklib/cleanly b/icklib/cleanly index 59b7e6e..b8b7cbb 100755 --- a/icklib/cleanly +++ b/icklib/cleanly @@ -297,6 +297,8 @@ class App(cliapp.Application): argv_prefix = [ 'sudo', '-E', + 'env', + 'HOME=/root', 'pbuilder', ] common_opts = [ |