mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
set_lsb_release: only set update-engine GROUP in /usr, not /etc
The default image group is already encoded in /usr/share/flatcar/update.conf but it was written to /etc/flatcar/update.conf as well. This can cause problems when the user switches channels by forcing an update to a specific release from the different channel (e.g., through the flatcar-update tool) as it leaves the file under /etc/flatcar/update.conf out of sync with the new channel version in /usr/share/flatcar/update.conf. Since we don't really need to write a specific channel to /etc on new images as we can rely on the value from /usr, we now leave any possible overwriting of the value in /etc entirely to the user.
This commit is contained in:
parent
bf053ed800
commit
0c9804a9a4
@ -73,7 +73,3 @@ sudo_clobber "${ROOT_FS_DIR}/usr/share/flatcar/update.conf" <<EOF
|
||||
SERVER=https://public.update.flatcar-linux.net/v1/update/
|
||||
GROUP=$FLAGS_group
|
||||
EOF
|
||||
|
||||
sudo_clobber "${ROOT_FS_DIR}/etc/flatcar/update.conf" <<EOF
|
||||
GROUP=$FLAGS_group
|
||||
EOF
|
||||
|
||||
1
changelog/changes/2022-01-11-etc-flatcar-update-conf.md
Normal file
1
changelog/changes/2022-01-11-etc-flatcar-update-conf.md
Normal file
@ -0,0 +1 @@
|
||||
- Removed the pre-shipped `/etc/flatcar/update.conf` file, leaving it totally to the user to define the contents as it was unnecessarily overwriting the `/use/share/flatcar/update.conf` ([PR#212](https://github.com/flatcar-linux/scripts/pull/212))
|
||||
Loading…
x
Reference in New Issue
Block a user