Skip to content

bootc install-to-disk seems to "reset" any passwords. #1430

@cdrage

Description

@cdrage

When installing via bootc install-to-disk with these commands:

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions