Control: tag -1 + patch On Thu, 21 Apr 2016 22:44:28 +0200 Christian Kastner <c...@debian.org> wrote: > The umask of the invoking user currently affects how files within the VM > are created. Side effects may include various services failing to start, > eg networking: > > > [FAILED] Failed to start Network Service. > > See 'systemctl status systemd-networkd.service' for details.
I have attached a patch that resolved this issue. Regards, Christian
From eaf48d05449c4b38833afce4c0bcf4bee98c81f8 Mon Sep 17 00:00:00 2001 From: Christian Kastner <c...@kvr.at> Date: Wed, 13 Jul 2016 20:19:49 +0200 Subject: [PATCH 1/4] Set umask to 0022 before commencing operations Some files are expected to be world-readable in the VM (eg: the apt configuration), but if root invokes vmdebootstrap with a umask of 0027, they wont be. --- bin/vmdebootstrap | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap index 63de77b..859816e 100755 --- a/bin/vmdebootstrap +++ b/bin/vmdebootstrap @@ -195,6 +195,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth sys.exit(0) if os.geteuid() != 0: sys.exit("You need to have root privileges to run this script.") + os.umask(0022) self.start_ops() def _image_preparations(self): -- 2.8.1
signature.asc
Description: OpenPGP digital signature