The officially official Devuan Forum!

You are not logged in.

#1 2021-01-15 03:04:44

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

[solved] refractasnapshot live session login loop

tried refractansapshot out today, created the iso of my system which is devuan beowulf with latest updates. I dont run a desktop environment only dwm as window manager and it has non encrypted boot with an encrypted root only file system, so only two partitions. I use startx with no login manager.  The snapshot built fine and i can boot it to the splash screen and choose the very top most menu item, after it finishes the boot process it goes into a loop when trying to startx or autologin to X. Maybe im missing some package or setting in my system to make the iso startx?

I usually just use rsync to backup but thought this refractasnapshot might be a good alternative.

edit: may have narrowed down the culprit, unsure. Does refracta snapshot just use an autologin feature or rely on user settings like .xinitrc ?
if .xinitrc i use a bin script called startdwm so .xinitrc doesnt have exec dwm

the script is located in ~/bin

contents =

#!/bin/sh

while true; do
    # Log stderror to a file 
    dwm 2> ~/.dwm.log
    # No error logging
    #dwm >/dev/null 2>&1
done

Last edited by dice (2021-01-15 12:01:37)

Offline

#2 2021-01-15 03:50:17

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [solved] refractasnapshot live session login loop

Autologin is controlled by the display manager, and if there isn't one, startx is run from
/etc/profile.d/zz-live-config_xinit.sh   

That file is created by /lib/live/config/0140-xinit

You could remove that file before making a snapshot, or comment out a few lines of code in that script. I think it will also work to add a boot option:

nocomponents=xinit

Offline

#3 2021-01-15 06:49:42

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: [solved] refractasnapshot live session login loop

thanks, removing (and backing up) /lib/live/config/0140-xinit solved it.

when you say add boot option nocomponents=xinit, do you mean to add it as a parameter at the boot splash screen as an alternative to removing 0140-xinit?

Offline

#4 2021-01-15 11:17:44

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [solved] refractasnapshot live session login loop

Yes, you could add a boot paramater instead of removing that live-config script. To test on the fly, press TAB at the isolinux boot menu or 'e' at the grub boot menu to edit the boot command.

To change the templates for the boot menus, so you don't have to edit them on every build, look in /usr/lib/refractasnapshot

Offline

#5 2021-01-15 12:01:53

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: [solved] refractasnapshot live session login loop

thanks will do.

Offline

Board footer