forked from josch/mmdebstrap
print the used temporary directory as info message
This commit is contained in:
parent
e06f2e9c57
commit
d73b8396ac
1 changed files with 2 additions and 0 deletions
|
@ -2021,6 +2021,7 @@ sub main() {
|
||||||
'mmdebstrap.XXXXXXXXXX',
|
'mmdebstrap.XXXXXXXXXX',
|
||||||
DIR => File::Spec->tmpdir
|
DIR => File::Spec->tmpdir
|
||||||
);
|
);
|
||||||
|
info "using $options->{root} as tempdir";
|
||||||
# in unshare and root mode, other users than the current user need to
|
# in unshare and root mode, other users than the current user need to
|
||||||
# access the rootfs, most prominently, the _apt user. Thus, make the
|
# access the rootfs, most prominently, the _apt user. Thus, make the
|
||||||
# temporary directory world readable.
|
# temporary directory world readable.
|
||||||
|
@ -2315,6 +2316,7 @@ sub main() {
|
||||||
$waiting_for = "cleanup";
|
$waiting_for = "cleanup";
|
||||||
|
|
||||||
if ($options->{maketar} and -e $options->{root}) {
|
if ($options->{maketar} and -e $options->{root}) {
|
||||||
|
info "removing tempdir $options->{root}...";
|
||||||
if ($options->{mode} eq 'unshare') {
|
if ($options->{mode} eq 'unshare') {
|
||||||
# We don't have permissions to remove the directory outside
|
# We don't have permissions to remove the directory outside
|
||||||
# the unshared namespace, so we remove it here.
|
# the unshared namespace, so we remove it here.
|
||||||
|
|
Loading…
Reference in a new issue