summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2016-04-16 18:28:18 +0100
committerNeil Williams <codehelp@debian.org>2016-04-16 18:28:18 +0100
commitf19dc2e32f6b9b7418fa273bb925ebb049ff9fd4 (patch)
tree79f958ab4610759ebb8570d40063771451449787
parent1b5f88f744a2ad2e5d8095749adb3f50af522728 (diff)
downloadvmdebootstrap-f19dc2e32f6b9b7418fa273bb925ebb049ff9fd4.tar.gz
make the debootstrap.log readable, when things go wrong.
-rwxr-xr-xbin/vmdebootstrap1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap
index 00c77f8..63de77b 100755
--- a/bin/vmdebootstrap
+++ b/bin/vmdebootstrap
@@ -319,6 +319,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
rootdir = filesystem.devices['rootdir']
if rootdir:
db_log = os.path.join(rootdir, 'debootstrap', 'debootstrap.log')
+ os.chmod(db_log, 0o644)
if os.path.exists(db_log):
shutil.copy(db_log, os.getcwd())
if self.settings['owner']: