Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

live-build noautologin

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
marcux2
Posts: 3
Joined: 2020-03-24 07:36

live-build noautologin

#1 Post by marcux2 »

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

#2 Post by marcux2 »

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

But that did not work.
Any suggestions?

Thanks

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: live-build noautologin

#3 Post by Head_on_a_Stick »

Try

Code: Select all

lb config noauto --bootappend-live 'noautologin live-config.username=foo'
Replace foo with the desired custom username.
deadbang

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

Re: live-build noautologin

#4 Post by marcux2 »

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" \
   "${@}"

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: live-build noautologin

#5 Post by Head_on_a_Stick »

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.
deadbang

Post Reply