From 96efd9c259fc5158c39fce5916ad8f584bedffad Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Sat, 19 Nov 2016 20:55:05 +0100 Subject: [PATCH] Remove sudoers configuration for the installer --- modules/prepare/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/prepare/main.py b/modules/prepare/main.py index c7b4478..8b2a901 100644 --- a/modules/prepare/main.py +++ b/modules/prepare/main.py @@ -32,6 +32,7 @@ def run(): packages later. - Install the kernel which is not included in the image. - Remove live media packages. + - Remove sudo configuration for the installer. - Rewrite os-release. This job must be executed before packages and grubcfg. @@ -45,6 +46,11 @@ def run(): boot_path = os.path.join(install_path, "boot", "vmlinuz-linux") shutil.copyfile("/run/archiso/bootmnt/liri/boot/x86_64/vmlinuz", boot_path) + sudoers_livemedia_path = os.path.join(install_path, "etc", "sudoers.d", "00-livemedia") + sudoers_installer_path = os.path.join(install_path, "etc", "sudoers.d", "10-installer") + os.unlink(sudoers_livemedia_path) + os.unlink(sudoers_installer_path) + os_release = os.path.join(install_path, "usr", "lib", "os-release") try: with open(os_release, "w") as fd: