fix(autologin): pre-create airlys user and configure sddm-autologin PAM module for instant desktop bypass

This commit is contained in:
Adam Eehan committed 2026-10-25 03:14:29 +05:30
1 parent da36a897e8
commit feddc61aaa
3 files changed
+20 -1

No files matched your search

+13 -1
View File
@@ -62,7 +62,19 @@ jobs:
# 6. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs # 6. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs
cp -r profile/airootfs/* build_profile/airootfs/ 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 cp -f profile/profiledef.sh build_profile/profiledef.sh
# 6. Build full production live bootable ISO # 6. Build full production live bootable ISO
@@ -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
+1
View File
@@ -17,6 +17,7 @@ airootfs_image_type="squashfs"
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M') airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M')
file_permissions=( file_permissions=(
["/etc/shadow"]="0:0:400" ["/etc/shadow"]="0:0:400"
["/etc/pam.d/sddm-autologin"]="0:0:644"
["/etc/sudoers.d/airlys"]="0:0:440" ["/etc/sudoers.d/airlys"]="0:0:440"
["/usr/local/bin/airlys-firstrun.sh"]="0:0:755" ["/usr/local/bin/airlys-firstrun.sh"]="0:0:755"
["/root"]="0:0:750" ["/root"]="0:0:750"