Skip to content

fix: wipe the first/last 1MiB in addition to wiping by signatures#12620

Merged
talos-bot merged 1 commit intosiderolabs:mainfrom
smira:fix/wipe-sigs-more
Jan 20, 2026
Merged

fix: wipe the first/last 1MiB in addition to wiping by signatures#12620
talos-bot merged 1 commit intosiderolabs:mainfrom
smira:fix/wipe-sigs-more

Conversation

@smira
Copy link
Copy Markdown
Member

@smira smira commented Jan 19, 2026

I got a failure when dual-boot image refuses to format EPHEMERAL partition where EFI partition used to be (VFAT).

So until we have a resolution, do this workaround.

@smira smira added this to the v1.13 milestone Jan 19, 2026
@github-project-automation github-project-automation bot moved this to To Do in Planning Jan 19, 2026
@talos-bot talos-bot moved this from To Do to In Review in Planning Jan 19, 2026
@smira
Copy link
Copy Markdown
Member Author

smira commented Jan 19, 2026

Split from #12611

@smira smira force-pushed the fix/wipe-sigs-more branch from aa509d0 to c37f7f1 Compare January 19, 2026 13:26
smira added a commit to smira/talos that referenced this pull request Jan 20, 2026
Open the blockdevice in `O_EXCL` mode when wiping to ensure that we
don't wipe a mounted device.

This issue was discovered via siderolabs#12620, when we wipe a blockdevice which
is still mounted ending up in a wrong state.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Jan 20, 2026
Open the blockdevice in `O_EXCL` mode when wiping to ensure that we
don't wipe a mounted device.

This issue was discovered via siderolabs#12620, when we wipe a blockdevice which
is still mounted ending up in a wrong state.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira smira force-pushed the fix/wipe-sigs-more branch from c37f7f1 to 2f0c3ae Compare January 20, 2026 13:31
@github-project-automation github-project-automation bot moved this from In Review to Approved in Planning Jan 20, 2026
I got a failure when dual-boot image refuses to format EPHEMERAL
partition where `EFI` partition used to be (VFAT).

So until we have a resolution, do this workaround.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira smira force-pushed the fix/wipe-sigs-more branch from 2f0c3ae to 3d13016 Compare January 20, 2026 17:26
@smira
Copy link
Copy Markdown
Member Author

smira commented Jan 20, 2026

/m

@talos-bot talos-bot merged commit 3d13016 into siderolabs:main Jan 20, 2026
58 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in Planning Jan 20, 2026
@smira smira moved this from Proposed to Accepted in Backports to v1.12 Jan 21, 2026
smira added a commit to smira/talos that referenced this pull request Jan 21, 2026
Open the blockdevice in `O_EXCL` mode when wiping to ensure that we
don't wipe a mounted device.

This issue was discovered via siderolabs#12620, when we wipe a blockdevice which
is still mounted ending up in a wrong state.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit f7072c0)
@smira smira mentioned this pull request Jan 21, 2026
@smira smira moved this from Accepted to In Progress in Backports to v1.12 Jan 21, 2026
@smira smira moved this from In Progress to Backported in Backports to v1.12 Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backported
Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants