diff --git a/iso/profile/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf b/iso/profile/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf new file mode 100644 index 0000000..a7a3088 --- /dev/null +++ b/iso/profile/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf @@ -0,0 +1,3 @@ +[Service] +ExecStart= +ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM diff --git a/iso/profile/airootfs/root/.bash_profile b/iso/profile/airootfs/root/.bash_profile new file mode 100644 index 0000000..c6da9e5 --- /dev/null +++ b/iso/profile/airootfs/root/.bash_profile @@ -0,0 +1,3 @@ +if [[ -z $DISPLAY ]] && [[ $(tty) == /dev/tty1 ]]; then + exec startx +fi diff --git a/iso/profile/profiledef.sh b/iso/profile/profiledef.sh index 50b44ca..431e623 100644 --- a/iso/profile/profiledef.sh +++ b/iso/profile/profiledef.sh @@ -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" )