From f42859ac6a7d857f3378a7437f145a04426cc157 Mon Sep 17 00:00:00 2001 From: rickpeters Date: Sun, 27 Sep 2026 20:26:45 +0200 Subject: [PATCH] fix: The installer's sudo rule is read last, or CachyOS's %wheel rule after it asks for the password --- archiso/airootfs/usr/local/bin/steamify-install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/archiso/airootfs/usr/local/bin/steamify-install b/archiso/airootfs/usr/local/bin/steamify-install index e44aa24..08de7ff 100755 --- a/archiso/airootfs/usr/local/bin/steamify-install +++ b/archiso/airootfs/usr/local/bin/steamify-install @@ -2,11 +2,12 @@ # steamify-install : runs Steamify's default setup for # the new user inside the installed system (Calamares, after the users and # services steps). Steamify refuses root and asks sudo per command, so the -# user gets a NOPASSWD rule for this run only. Never fails the install: a +# user gets a NOPASSWD rule for this run only, named to be read last: sudo +# takes the last matching rule, and a later %wheel rule would ask again. Never fails the install: a # problem leaves the log and Steamify can be run again from the desktop. root="$1" user="$2" log="$root/var/log/steamify-install.log" -rule="$root/etc/sudoers.d/00-steamify-install" +rule="$root/etc/sudoers.d/zz-steamify-install" [[ -d "$root" && -n "$user" ]] || exit 0 install -Dm755 /usr/local/share/steamify/steamify.sh "$root/var/tmp/steamify.sh"