Newer versions of stat support %Hr and %Lr for major and minor device
types in decimal. Old stat only has %t and %T for the major and minor
device type in hex. This was causing the rule to break on Flatcar
Stable.
Change the backport to avoid the new stat decimal specifiers but instead
use the hex specifiers (Note: t is major and T in minor, but even when
one would confuse this, in our case both are 0).
The removal of files in the overlay present in the lowerdir creates
whiteout entries that mask the lowerdir entries. For those files that
have a tmpfile rule for creation, a reboot would cause the file to be
created in the upperdir, meaning this file is not updated from the
lowerdir when it changes. In addition we have filtered out some tmpfile
rules that caused upcopies (symlinks and directories) which meant that
removing the /etc/resolv.conf symlink didn't bring it back after reboot.
To make files from the lowerdir show up if they have a tmpfile rule that
normally would recreate them we keep a list of whiteout entries that we
clean up on boot. This also prevents freezing files because
systemd-tmpfiles does not need to recreate them in the upperdir.
When we support two LTS, the oldest one is compare to the newer one (e.g
lts-2022 is compared to lts-2023).
We now read the 'lts-info' file to find the right version to compare
(e.g lts-2022 is compared to the 'current-2022')
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
The special Brightbox image uses the OpenStack userdata in Ignition but
lacked Afterburn usage. It actually works to use the OpenStack image and
directly which also enables Afterburn, thus we can drop the special
image.
Don't build a special image for Brightbox but recommend to use OpenStack
images directly. A symlink is added to help with the download of
hardcoded user scripts.
For Brightbox we can use the OpenStack image but the import only works
with unpacked images. After we enabled internal qcow2 compression the
.gz or .bz2 external compression doesn't provide any benefits and makes
the import more complicated.
Provide the OpenStack image without external compression in addition.
The other files are kept for now but we could also delete them if we
announce this in advance.