From f19dc2e32f6b9b7418fa273bb925ebb049ff9fd4 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Sat, 16 Apr 2016 18:28:18 +0100 Subject: make the debootstrap.log readable, when things go wrong. --- bin/vmdebootstrap | 1 + 1 file changed, 1 insertion(+) 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']: -- cgit v1.2.1