How to create an image with a user and a script? #2617
Replies: 2 comments 2 replies
-
Scripts run from the build host and not in the image by default, so you will need to use either Details are n the Scripts section of the man page. That being said, instead of calling adduser yourself have a look at the
see the
See the options
No worries. |
Beta Was this translation helpful? Give feedback.
-
What package should I install in Ubuntu 22.04 to get the init system working? With
GRUB does not seem to be correctly installed, and
does not start anything. Using the Linux kernel image directly, the init system fails:
Using |
Beta Was this translation helpful? Give feedback.
-
I’d like to create an image and install BigBlueButton 3.0 in it. That requires Ubuntu 22.04 (jammy) and a user bbb, that is in group sudo, and then runs the script
bbb-install.sh
.The script creates Let’s Encrypt certificates and checks certain thinks in the end, so needs to be run in the VM with network access. So I’d only like to have it present in the image.
Then
but the user is not created.
PS: Is there a way to “live” debug a failure, that means, to get dropped in a shell in that environment, where it fails?
PPS: I am sorry for all my question. I have the feeling I am missing some fundamental understanding about mkosi. I really feel stupid and appreciated all your support.
Beta Was this translation helpful? Give feedback.
All reactions