From feddc61aaa0d315c30bb05c6dbf1a9502226a0eb Mon Sep 17 00:00:00 2001 From: Adam Eehan Date: Sun, 25 Oct 2026 03:14:29 +0530 Subject: [PATCH] fix(autologin): pre-create airlys user and configure sddm-autologin PAM module for instant desktop bypass --- .github/workflows/build.yml | 14 +++++++++++++- profile/airootfs/etc/pam.d/sddm-autologin | 6 ++++++ profile/profiledef.sh | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 profile/airootfs/etc/pam.d/sddm-autologin diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 363c105..faad2d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,7 +62,19 @@ jobs: # 6. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs cp -r profile/airootfs/* build_profile/airootfs/ - # 7. Apply Airlys OS S1 profiledef (xz -Xbcj x86 compression) + # 7. Pre-create airlys user with passwordless PAM autologin directly in airootfs + echo "airlys:x:1000:1000:Airlys User:/home/airlys:/bin/bash" >> build_profile/airootfs/etc/passwd + echo "airlys::19000:0:99999:7:::" >> build_profile/airootfs/etc/shadow + echo "airlys:x:1000:" >> build_profile/airootfs/etc/group + echo "wheel:x:998:airlys" >> build_profile/airootfs/etc/group + echo "video:x:985:airlys" >> build_profile/airootfs/etc/group + echo "audio:x:986:airlys" >> build_profile/airootfs/etc/group + echo "input:x:987:airlys" >> build_profile/airootfs/etc/group + mkdir -p build_profile/airootfs/home/airlys/.config + cp -r build_profile/airootfs/etc/skel/. build_profile/airootfs/home/airlys/ || true + chown -R 1000:1000 build_profile/airootfs/home/airlys || true + + # 8. Apply Airlys OS S1 profiledef (xz -Xbcj x86 compression) cp -f profile/profiledef.sh build_profile/profiledef.sh # 6. Build full production live bootable ISO diff --git a/profile/airootfs/etc/pam.d/sddm-autologin b/profile/airootfs/etc/pam.d/sddm-autologin new file mode 100644 index 0000000..57acb22 --- /dev/null +++ b/profile/airootfs/etc/pam.d/sddm-autologin @@ -0,0 +1,6 @@ +#%PAM-1.0 +auth required pam_env.so +auth required pam_permit.so +account include system-local-login +password include system-local-login +session include system-local-login diff --git a/profile/profiledef.sh b/profile/profiledef.sh index 9b17759..55a293d 100644 --- a/profile/profiledef.sh +++ b/profile/profiledef.sh @@ -17,6 +17,7 @@ airootfs_image_type="squashfs" airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M') file_permissions=( ["/etc/shadow"]="0:0:400" + ["/etc/pam.d/sddm-autologin"]="0:0:644" ["/etc/sudoers.d/airlys"]="0:0:440" ["/usr/local/bin/airlys-firstrun.sh"]="0:0:755" ["/root"]="0:0:750"