Skip to content

Commit

Permalink
Remove sudoers configuration for the installer
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Nov 19, 2016
1 parent b3bd64d commit 96efd9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/prepare/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit 96efd9c

Please # to comment.