From dd2c2ce40443d4fbf18c7a11c9794a37c9f46b0e Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer <sebastien.luttringer@smartjog.com> Date: Fri, 4 Nov 2011 11:25:19 +0100 Subject: [PATCH] debian chroot hellper policy-rd needs to be executable --- installsystems/tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installsystems/tools.py b/installsystems/tools.py index 6bd512d..ede3ae7 100644 --- a/installsystems/tools.py +++ b/installsystems/tools.py @@ -369,10 +369,12 @@ def prepare_chroot(path, mount=True): # create a chroot header try: open(os.path.join(path, "etc/debian_chroot"), "w").write("CHROOT") except: pass - # fake policy-d + # fake policy-rc.d policy_path = os.path.join(path, "usr/sbin/policy-rc.d") try: open(policy_path, "w").write("#!/bin/bash\nexit 42\n") except: pass + # policy-rc.d needs to be executable + chrights(policy_path, mode=0755) def unprepare_chroot(path, mount=True): ''' -- GitLab