@@ -8,8 +8,9 @@ use std::thread;
88use std:: time:: Duration ;
99
1010use crate :: config:: {
11- FsType , InstallConfig , BUSYBOX_SYMLINKS , EFI_LABEL , GREETD_SERVICE , GRUB_BIOS_MODULES ,
12- INITRAMFS_LIB_PATTERNS , ROOT_LABEL , RSYNC_EXCLUDES , TARGET_MNT , USER_GROUPS , USER_SHELL ,
11+ FsType , InstallConfig , BUSYBOX_SYMLINKS , EFI_LABEL , GRUB_BIOS_MODULES ,
12+ INITRAMFS_LIB_PATTERNS , NIRI_AUTOSTART_PROFILE , ROOT_LABEL , RSYNC_EXCLUDES , TARGET_MNT ,
13+ USER_GROUPS , USER_SHELL ,
1314} ;
1415use crate :: log;
1516
@@ -428,16 +429,11 @@ fn configure_system(config: &InstallConfig) -> Result<(), String> {
428429 . map_err ( |e| format ! ( "Failed to write passwd: {}" , e) ) ?;
429430 }
430431
431- // Replace agetty with greetd service
432- let agetty_path = format ! ( "{}/etc/dynamod/services/agetty-tty1.toml" , TARGET_MNT ) ;
433- let _ = fs:: remove_file ( & agetty_path) ;
434-
435- let greetd_dir = format ! ( "{}/etc/dynamod/services" , TARGET_MNT ) ;
436- fs:: create_dir_all ( & greetd_dir)
437- . map_err ( |e| format ! ( "mkdir {}: {}" , greetd_dir, e) ) ?;
438- let greetd_path = format ! ( "{}/greetd.toml" , greetd_dir) ;
439- fs:: write ( & greetd_path, GREETD_SERVICE )
440- . map_err ( |e| format ! ( "Failed to write greetd service: {}" , e) ) ?;
432+ // Auto-start niri session on tty1 after login (replaces greetd which has
433+ // session-worker hangs in seatd/dynamod environments).
434+ let autostart_path = format ! ( "{}/etc/profile.d/eclipse-niri-autostart.sh" , TARGET_MNT ) ;
435+ fs:: write ( & autostart_path, NIRI_AUTOSTART_PROFILE )
436+ . map_err ( |e| format ! ( "Failed to write niri autostart profile: {}" , e) ) ?;
441437
442438 // Remove live-environment artifacts
443439 let live_profile = format ! ( "{}/etc/profile.d/eclipse-live.sh" , TARGET_MNT ) ;
0 commit comments