mirror of
https://github.com/KDE/kde-linux.git
synced 2026-04-18 21:48:23 -04:00
chmod +x the finalize scripts
This commit is contained in:
6
mkosi.finalize.d/00-modify_nsswitch.py → mkosi.finalize.d/10-modify-nsswitch.py.chroot
Normal file → Executable file
6
mkosi.finalize.d/00-modify_nsswitch.py → mkosi.finalize.d/10-modify-nsswitch.py.chroot
Normal file → Executable file
@@ -6,9 +6,9 @@ import sys
|
||||
|
||||
def modify_nsswitch():
|
||||
path = "/etc/nsswitch.conf"
|
||||
|
||||
|
||||
print(f"Checking {path}...") # Debug line
|
||||
|
||||
|
||||
# Read the file
|
||||
try:
|
||||
with open(path, "r") as file:
|
||||
@@ -49,7 +49,7 @@ if __name__ == "__main__":
|
||||
if os.geteuid() != 0:
|
||||
print("This script must be run as root.", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
try:
|
||||
modify_nsswitch()
|
||||
except Exception as e:
|
||||
@@ -21,7 +21,7 @@ fi
|
||||
# De-initialize pacman
|
||||
rm -rf \
|
||||
/etc/pacman.d/gnupg \
|
||||
/var/cache/pacman
|
||||
/var/cache/pacman
|
||||
|
||||
## Pacman being present confuses users into thinking they can use it to install packages.
|
||||
## Rename it to kde-linux-readonly-pacman so they're less likely to find it.
|
||||
Reference in New Issue
Block a user