live-build noautologin

Help with issues regarding installation of Debian

live-build noautologin

Postby marcux2 » 2020-03-24 07:59

Hi all,
I have started testing out the live-build suite and managed to configure this and that.
The problem I have is that I do not want to have the autologin with user.
As soon as I create a new user the login crashes and I do not even get a prompt to login.
I have found:
https://manpages.debian.org/buster/live ... .7.en.html
I have read it and found: live-config.noautologin
I do not seem to be able to figure out how to use it and make the configuration the right way.

Please, give me some hints on how to apply this setting.

Second of all I want to remove the user (user) and just create my own.
I tried to add, userdel user, to my hook but I just got the error that the user does not exist.

Many thanks in advance!!

Regards
Marcus
marcux2
 
Posts: 3
Joined: 2020-03-24 07:36

Re: live-build noautologin

Postby marcux2 » 2020-03-24 14:57

I tried to use the following flag for lb config:
--bootappend-live live-config.noautologin

But that did not work.
Any suggestions?

Thanks
marcux2
 
Posts: 3
Joined: 2020-03-24 07:36

Re: live-build noautologin

Postby Head_on_a_Stick » 2020-03-25 08:29

Try
Code: Select all
lb config noauto --bootappend-live 'noautologin live-config.username=foo'

Replace foo with the desired custom username.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12770
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: live-build noautologin

Postby marcux2 » 2020-03-25 09:53

Thanks for the help Head_on_a_Stick
Just as reference you also need boot=live to make it work, as in:
Code: Select all
--bootappend-live "boot=live components locales=sv_SE.UTF-8 keyboard-layouts=se noautologin"

To make it easier I created a script in auto/config
which means that I just have to run lb config and it will use my auto/config file.
Do not forget to change to exec permission on auto/config (which I did)
My auto/config looks like:
Code: Select all
#!/bin/sh                                                                                                                                                                                                         
lb config noauto \
   --distribution buster \
   --binary-images iso-hybrid \
   --bootappend-live "boot=live components locales=sv_SE.UTF-8 keyboard-layouts=se noautologin" \
   --bootappend-live-failsafe "boot=live components locales=sv_SE.UTF-8 keyboard-layouts=se noautologin" \
   "${@}"
marcux2
 
Posts: 3
Joined: 2020-03-24 07:36

Re: live-build noautologin

Postby Head_on_a_Stick » 2020-03-25 16:41

marcux2 wrote:To make it easier I created a script in auto/config

Good idea, I also use that method: https://github.com/Head-on-a-Stick/Shar ... uto/config

Please edit the title of the thread (in the first post) and prepend [SOLVED] to help others who encounter this problem.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12770
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Installation

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable