From f002f92ed03c52f2aee98ae1253bc99a73a59fb3 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 5 Feb 2024 14:14:27 -0500 Subject: [PATCH] Enable `sysroot.bootprefix` by default I've been testing this in various places and not seen any fallout, so let's finally enable this by default and have the situation where `/boot` is on the root `/` filesystem work out of the box. --- src/libostree/ostree-repo.c | 2 +- tests/test-admin-deploy-bootprefix.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 04a540296d..f8e027c85b 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -3346,7 +3346,7 @@ reload_sysroot_config (OstreeRepo *self, GCancellable *cancellable, GError **err g_hash_table_replace (self->bls_append_values, key, value); } - if (!ot_keyfile_get_boolean_with_default (self->config, "sysroot", "bootprefix", FALSE, + if (!ot_keyfile_get_boolean_with_default (self->config, "sysroot", "bootprefix", TRUE, &self->enable_bootprefix, error)) return FALSE; diff --git a/tests/test-admin-deploy-bootprefix.sh b/tests/test-admin-deploy-bootprefix.sh index d80c310b3e..e82fd8d047 100755 --- a/tests/test-admin-deploy-bootprefix.sh +++ b/tests/test-admin-deploy-bootprefix.sh @@ -25,7 +25,7 @@ set -euo pipefail setup_os_repository "archive" "syslinux" ${CMD_PREFIX} ostree --repo=sysroot/ostree/repo pull-local --remote=testos testos-repo testos/buildmain/x86_64-runtime -${CMD_PREFIX} ostree --repo=sysroot/ostree/repo config set sysroot.bootprefix 'true' +# sysroot.bootprefix is on by default now ${CMD_PREFIX} ostree admin deploy --karg=root=LABEL=root --os=testos testos:testos/buildmain/x86_64-runtime assert_file_has_content_literal sysroot/boot/loader/entries/ostree-1-testos.conf 'linux /boot/ostree/testos-' assert_file_has_content_literal sysroot/boot/loader/entries/ostree-1-testos.conf 'initrd /boot/ostree/testos-'