osbuild / osbuild-composer

An HTTP service for building bootable OS images.
https://www.osbuild.org
Apache License 2.0
162 stars 107 forks source link

osbuild/docs building an edge installer user/pass issue in final VM #3415

Open jacques-dau opened 1 year ago

jacques-dau commented 1 year ago

Describe the bug This is the first time using osbuild, so I might be missing something simple.

I am trying to follow the guide at: https://www.osbuild.org/guides/user-guide/edge-container+installer.html

However, I am having trouble with the final user/pass that should be available on the VM. I just use the defaults for the anaconda install process, the 'user' exists, but the suggested password does not.

I also tested this with a blueprint user customization with just a plaintext 'test' as a password, and this also doesn't work.

I do substitute: 'edge-container' -> 'iot-container' 'edge-installer' -> 'iot-installer' in the guide.

Environment I am building this on a VM

To Reproduce Steps to reproduce the behavior: I just followed and copy pasted the commands from: https://www.osbuild.org/guides/user-guide/edge-container+installer.html

I do substitute: 'edge-container' -> 'iot-container' 'edge-installer' -> 'iot-installer' in the guide.

Expected behavior After installing the iso on a new VM, I expect the username "user" and password "password42" to work, as per the docs.

Additional context I am running the following commands based on the example:

composer-cli blueprints push example.toml
composer-cli compose start-ostree --ref "fedora/iot/example" example iot-container
composer-cli compose image 896f52a4-2510-42fe-9bcb-9f2b10a8c6aa
cat 896f52a4-2510-42fe-9bcb-9f2b10a8c6aa-container.tar | podman load
podman images
podman tag 8e5bcf2fb3bd  localhost/iot-test
podman run --rm -d -p 8080:8080 --name iot-test  localhost/iot-test
composer-cli compose start-ostree --ref "fedora/iot/example" --url http://localhost:8080/repo/ empty iot-installer
composer-cli compose image 91fb2b26-7120-4e36-95d8-bb0992eb64de
jmarais commented 1 year ago

Moving the user customization from the example.toml to the empty.toml does work. I am not sure if that is the correct/expected behaviour, but it goes against the example.