Skip to content

Remove flags field from NewAtomicFile calls#548

Open
olivercalder wants to merge 1 commit into
canonical:masterfrom
olivercalder:adjust-osutil-new-atomic-file-signature
Open

Remove flags field from NewAtomicFile calls#548
olivercalder wants to merge 1 commit into
canonical:masterfrom
olivercalder:adjust-osutil-new-atomic-file-signature

Conversation

@olivercalder
Copy link
Copy Markdown
Member

The osutil.AtomicWriteFlags has had its only flag value removed from snapd, as that flag had been unused since 2016. Now, since all the flags osutil.AtomicWriteFlags fields were ignored, we want to remove those fields from snapd as well. However, snapd vendors secboot, and secboot uses osutil.NewAtomicFile from snapd, so we can't make the change in snapd without first making the change in secboot.

Once this secboot change lands and a new secboot build is available, then we can bump the secboot version used by snapd within the PR which changes the osutil function signatures. Then, after that PR within snapd lands, we can bump the snapd version which secboot builds against.

That PR within snapd is canonical/snapd#17129

The `osutil.AtomicWriteFlags` has had its only flag value removed from
snapd, as that flag had been unused since 2016. Now, since all the
`flags osutil.AtomicWriteFlags` fields were ignored, we want to remove
those fields from snapd as well. However, snapd vendors secboot, and
secboot uses `osutil.NewAtomicFile` from snapd, so we can't make the
change in snapd without first making the change in secboot.

Once this secboot change lands and a new secboot build is available,
then we can bump the secboot version used by snapd within the PR which
changes the `osutil` function signatures. Then, after that PR within
snapd lands, we can bump the snapd version which secboot builds against.

That PR within snapd is canonical/snapd#17129

Signed-off-by: Oliver Calder <oliver.calder@canonical.com>
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.

1 participant