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

flatcar-postinst: Clean up incomplete move target #29

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

pothos
Copy link
Member

@pothos pothos commented Oct 13, 2023

When the old OEM contents and a yet inactive systemd-sysext image are on the OEM partition (or if no two sysexts fit on it), it can fail to write the second systemd-sysext image on the OEM partition and the rootfs is used instead. However, "mv" doesn't clean up the incomplete target file which filled the disk, this results in the migration flag file creation to fail, which fails the update action.
Clean up the incomplete move target that filled the disk.

How to use

Backport to Alpha/Beta because this fixes the problem of not being able to update from ≤ 3619.0.0

Testing done

in flatcar/scripts#1272

When the old OEM contents and a yet inactive systemd-sysext image are on
the OEM partition (or if no two sysexts fit on it), it can fail to write
the second systemd-sysext image on the OEM partition and the rootfs is
used instead. However, "mv" doesn't clean up the incomplete target file
which filled the disk, this results in the migration flag file creation
to fail, which fails the update action.
Clean up the incomplete move target that filled the disk.
pothos added a commit to flatcar/scripts that referenced this pull request Oct 13, 2023
This pulls in flatcar/update_engine#29 and
flatcar/bootengine#76
to fix the problem of not being able to update from ≤ 3619.0.0 on Azure.
@pothos pothos requested a review from a team October 13, 2023 19:12
@krnowak
Copy link
Member

krnowak commented Oct 16, 2023

Let's get this in for the releases this week.

@krnowak krnowak merged commit a95d6d8 into flatcar-master Oct 16, 2023
@krnowak krnowak deleted the kai/postinst-mv-clean branch October 16, 2023 10:53
krnowak pushed a commit to flatcar/scripts that referenced this pull request Oct 16, 2023
This pulls in flatcar/update_engine#29 and
flatcar/bootengine#76
to fix the problem of not being able to update from ≤ 3619.0.0 on Azure.
krnowak pushed a commit to flatcar/scripts that referenced this pull request Oct 16, 2023
This pulls in flatcar/update_engine#29 and
flatcar/bootengine#76
to fix the problem of not being able to update from ≤ 3619.0.0 on Azure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants