bootc install-to-disk seems to "reset" any passwords.
- Dominant language
- Rust
- Stars
- 2.3k
- Forks
- 230
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 38
Description
When installing via `bootc install-to-disk` with these commands:
```sh
sudo podman run \
--rm \
--privileged \
--pid=host \
-v /var/lib/containers:/var/lib/containers \
-v /dev:/dev \
--security-opt label=type:unconfined_t \
mycontainer/foobar \
bootc install to-disk /dev/nvme0n1 --filesystem xfs --wipe
```
With a "test" Containerfile:
```Dockerfile
FROM quay.io/fedora/fedora-bootc:43
# ONLY FOR TESTING bootc install-to-disk
RUN echo "root:root" | chpasswd
```
After installing to disk, unplugging the live USB stick and booting into the OS, I'm unable to login as root/root.
**To replicate:**
1. Build your Containerfile above ^^
2. Perform the `bootc install-to-disk` to a bare metal / actual device
3. Try to login (wrong password).
**I can confirm that:**
* I do NOT run into this issue if I create the `.raw` from bootc-image-builder / I am able to login fine.
* Building the "anaconda-iso" and using that, I will also not get this issue either.
Contributor guide
Assessment
This issue has not been assessed yet.