Revert "Enable `sysroot.bootprefix` by default"
authorColin Walters <walters@verbum.org>
Wed, 7 Feb 2024 20:43:11 +0000 (15:43 -0500)
committerColin Walters <walters@verbum.org>
Wed, 7 Feb 2024 20:58:06 +0000 (15:58 -0500)
This reverts commit 8627c8afa15fa0b2dc2dc261a217dd043a991a7d.

See discussion in https://github.com/ostreedev/ostree/pull/3156 ;
we think this breaks s390x in some cases at least, and that warrants
further investigation.

src/libostree/ostree-repo.c
tests/test-admin-deploy-bootprefix.sh

index f8e027c85bd75c240e446ae1b825e7888e0bc231..04a540296d210b2b8643799e222e61598f8a77f2 100644 (file)
@@ -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", TRUE,
+  if (!ot_keyfile_get_boolean_with_default (self->config, "sysroot", "bootprefix", FALSE,
                                             &self->enable_bootprefix, error))
     return FALSE;
 
index 26281f1d8b6782d311abe202161d3e04a932f29a..d80c310b3ea8fa953a287dbbdeab64456de6b273 100755 (executable)
@@ -25,19 +25,11 @@ 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
-# sysroot.bootprefix is on by default now
+${CMD_PREFIX} ostree --repo=sysroot/ostree/repo config set sysroot.bootprefix 'true'
 ${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-'
 
-tap_ok "bootprefix on"
-
-${CMD_PREFIX} ostree --repo=sysroot/ostree/repo config set sysroot.bootprefix 'false'
-${CMD_PREFIX} ostree admin undeploy 0
-${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 /ostree/testos-'
-assert_file_has_content_literal sysroot/boot/loader/entries/ostree-1-testos.conf 'initrd /ostree/testos-'
-
-tap_ok "bootprefix off"
+tap_ok "bootprefix"
 
 tap_end