Skip to content

Add an argument boot-uuid to bootupctl install #1051

Description

@HuijingHei

With bootc-dev/bootc#1816, bootc install on existing FCOS test failed.

When running bootc install without separate /boot, if chroot to the ostree deployment, the write_uuid will fail as inspected the / filesystem as it is not mounted.

Copy failed log from https://github.com/bootc-dev/bootc/actions/runs/20912844659/job/60080780702?pr=1816

                        content: Installed: grub.cfg
                        content: error: boot data installation failed: Installing static GRUB configs: Inspecting filesystem ".": Subprocess failed: ExitStatus(unix_wait_status(256))
                        content: 
                        content: error: Installing to filesystem: Installing bootloader: Failed to run command: Command {
                        content:     program: "chroot",
                        content:     args: [
                        content:         "chroot",
                        content:         "/target/ostree/deploy/default/deploy/e1522e8dbaa55a684e1906a1ef7e91ea7f3014db86c25f84e3ab31be356eb247.0",
                        content:         "bootupctl",
                        content:         "backend",
                        content:         "install",
                        content:         "--write-uuid",
                        content:         "--update-firmware",
                        content:         "--auto",
                        content:         "--device",
                        content:         "/dev/vda",
                        content:         "/",
                        content:     ],
                        content:     env: CommandEnv {
                        content:         clear: false,
                        content:         vars: {
                        content:             "PATH": Some(
                        content:                 "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin",
                        content:             ),
                        content:         },
                        content:     },
                        content:     create_pidfd: false,
                        content: }

To workaround, one option is pass boot-uuid to bootupctl as it already detect in bootc (https://github.com/bootc-dev/bootc/blob/main/crates/lib/src/install.rs#L1568)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions