[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Live Build on Debian

Hello everybody!

Building on Debian Buster.
When I add larger files (1-2GB) via includes.chroot to /etc/skel, the build still completes successfully and the iso works as well, but at boot it says "A start job is running for live-config (late userspace) which takes about 2min until it boots.

Anybody know why this is happening and how to avoid it?

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, January 29, 2021 12:22 AM, mike.goldberg1 <mike.goldberg1@protonmail.com> wrote:

Hi everyone!

Live build works great on Debian 10 but I cannot figure out something.

My Goal >
1)Change the user password of the live user
2)Have all applications request the password like on a regular install

Solution >
1)Remove /etc/sudoers.d/live which live-build creates by default and contains the line that is added to the /etc/sudoers file and causes all apps to run without password prompt. Namely  "user  ALL=(ALL) NOPASSWD: ALL" 

2)Write a hook which sets a new user password at boot, since the user is created at this time by live-config.

The live build manual recommends to use the passwd example hook located in /usr/share/doc/live-config/examples/hooks and add it to config/includes.chroot/lib/live/config/

This did not work for me at all, unfortunately. Also, I wasn't quite sure what "prefix" needed to be applied, since this actually runs at boot time. I called mine "2000-passwd.hook.chroot".

I also tried by creating my own hook to change the passwd at boot time, by placing it in the same directory, but this also failed.
This was my command "echo user:pass | /user/sbin/chpasswd"

Any help would be appreciated!

Reply to: