Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

second ignition and filesystem reuse-semantics: LUKS breaks reuse #1858

Open
aanno opened this issue Jan 4, 2025 · 0 comments
Open

second ignition and filesystem reuse-semantics: LUKS breaks reuse #1858

aanno opened this issue Jan 4, 2025 · 0 comments

Comments

@aanno
Copy link

aanno commented Jan 4, 2025

Describe the enhancement

filesystem reuse

I want to reuse filesystem(s) with coreos. For testing this, I tried a second ignition by providing 'ignition.firstboot' as kernel parameter on boot.

The relevant documentation that this scenario might be possible is:

problems running ignition more than once

At present LUKS hinders the second ignition with the following error:

Jan 04 19:28:45 ignition[1509]: Ignition failed: creating crypttab entries: adding luks related files: error creating /sysroot/etc/luks/luks-backup: error creating file "/sysroot/etc/luks/luks-backup": A file exists there already and overwrite is false
Jan 04 19:31:08 systemd[1]: ignition-remount-sysroot.service: Failed with result 'exit-code'.
Jan 04 19:31:08 systemd[1]: Failed to start ignition-remount-sysroot.service - Remount /sysroot read-write for Ignition.

In addition after this problem, the (installed) coreos is no longer useable:

Please enter passphrase for disk var (luks-var): (press TAB for no echo)

Even if you've got a backup of the /etc/luks/* file, providing them leads to

an 04 19:56:31 ignition[1539]: Ignition failed: creating crypttab entries: adding luks related files: error creating /sysroot/etc/luks/luks-backup: error creating file "/sysroot/etc/luks/luks-backup": A file exists there already and overwrite is false

proposed solution/enhancement

Allow LUKS reuse. Overwrite should be true for path containing /sysroot/etc/luks. Otherwise, filesystem reuse is not possible when using LUKS.

System details

I tried this with:

  • fedora-coreos-41.20241122.3.0
  • on libvirt (virt-manager)

Additional information

No response

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

No branches or pull requests

1 participant