ostree/src/boot
Javier Martinez Canillas 9f48e212a3 deploy: Change BootLoaderSpec filenames so they can be used for sorting
Currently the BLS snippets are named ostree-$ID-$VARIANT_ID-$index.conf,
but the BLS config files are actually sorted by using the version field
which is the inverse of the index.

In most places, _ostree_sysroot_read_boot_loader_configs() is used to
get the BLS files and this function already returns them sorted by the
version field. The only place where the index trailing number is used is
in the ostree-grub-generator script that lists the BLS files to populate
the grub config file.

But for some bootloaders the BLS filename is the criteria for sorting by
taking the filename as a string version. So on these bootloaders the BLS
entries will be listed in the reverse order.

To avoid that, change the BLS snippets filename to have the version field
instead of the index and also to have the version before deployment name.

Make the filenames to be of the form ostree-$version-$ID-$VARIANT_ID.conf
so the version is before the deployment name.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>

Closes: #1654
Approved by: cgwalters
2018-06-27 18:08:28 +00:00
..
dracut Add SPDX-License-Identifier to source files 2018-01-30 20:03:42 +00:00
grub2 deploy: Change BootLoaderSpec filenames so they can be used for sorting 2018-06-27 18:08:28 +00:00
mkinitcpio Move ostree-* executables to /usr/lib/ostree 2016-08-11 14:04:59 +00:00
ostree-finalize-staged.service Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
ostree-prepare-root.service Move ostree-* executables to /usr/lib/ostree 2016-08-11 14:04:59 +00:00
ostree-remount.service boot: Ensure we remount /var writable before systemd does journal flush 2016-09-15 19:41:44 +00:00
ostree-tmpfiles.conf boot: Add a tmpfiles.d snippet to clean up /var/tmp/ostree-ovl.XXX 2017-08-17 18:38:45 +00:00