Auto-start X on boot: autologin root on TTY1, startx from .bash_profile

Also add all OrionOS binaries to file_permissions so archiso sets 755
on them in the squashfs (fixes Permission denied from xinitrc).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-08-31 13:20:03 -04:00
1 parent 689249cf5e
commit 1fa8f212b1
3 files changed
+16

No files matched your search

@@ -0,0 +1,3 @@
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM
+3
View File
@@ -0,0 +1,3 @@
if [[ -z $DISPLAY ]] && [[ $(tty) == /dev/tty1 ]]; then
exec startx
fi
+10
View File
@@ -17,6 +17,16 @@ airootfs_image_tool_options=('-comp' 'zstd' '-Xcompression-level' '15')
file_permissions=(
["/etc/orionos/xinitrc"]="0:0:755"
["/root/.xinitrc"]="0:0:755"
["/root/.bash_profile"]="0:0:644"
["/etc/skel/.xinitrc"]="0:0:755"
["/root/customize_airootfs.sh"]="0:0:755"
["/usr/local/bin/orionwm"]="0:0:755"
["/usr/local/bin/oriondeskbar"]="0:0:755"
["/usr/local/bin/orionlauncher"]="0:0:755"
["/usr/local/bin/orionwallpaper"]="0:0:755"
["/usr/local/bin/orionnotify"]="0:0:755"
["/usr/local/bin/orionlock"]="0:0:755"
["/usr/local/bin/orionshot"]="0:0:755"
["/usr/local/bin/orionclip"]="0:0:755"
["/usr/local/bin/orionpkg"]="0:0:755"
)