[backport v2021 <- v2023dev3] sample-image-production: Write os-release before cleaning up root
The /etc/os-release file is edited in the chroot environment (chroot: true), but that chroot env cannot be accessed after the "Reset rootfs before deploying OSTree" step (chroot is failing because /etc/resolv.conf is missing)
It also makes sense to edit /etc/os-release before running the "OSTree commit" step to include the correct /etc/os-release in the ostree commit. So the editing of /etc/os-release ("Customize image version metadata" step) is moved right before that.
Fixes: apertis-issues#151 (closed)
This is a backport of !533 (merged) (merged)
Merge request reports
Activity
requested review from @wlozano
assigned to @detlev
- Resolved by Walter Lozano
I don't think this is the same case as in the other releases, since setup_image_version.sh does not seem to be present and you are adding it with this MR. So you can either, close this MR (since this seems not to be needed in this release) or amend the commit explaining why you call the script. I'll be happy with either option.
added 1 commit
- 4fcfd90d - sample-image-production: Write os-release before cleaning up root
enabled an automatic merge when the pipeline for 4fcfd90d succeeds