From b5215ca0a5ec68ad4634e100f7255f2e491fdf96 Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Wed, 11 Nov 2026 12:27:13 +0300 Subject: [PATCH] Do not skip ESP mirroring for a bind-mounted /boot --- adapters/host.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adapters/host.sh b/adapters/host.sh index 3f5d29d..b95c267 100644 --- a/adapters/host.sh +++ b/adapters/host.sh @@ -4,8 +4,10 @@ if [[ $1 == boot-sync ]]; then [[ ${SERVICE_RESULT:-success} == success ]] || { echo 'OSTree finalization failed; ESP unchanged' >&2; exit 1; } [[ -e /run/ostree-booted ]] mountpoint -q /efi || { echo '/efi is not mounted; ESP unchanged' >&2; exit 1; } - # D-103: an XBOOTLDR /boot mount is written by OSTree directly; nothing to mirror. - mountpoint -q /boot && exit 0 + # The two-partition layout bind-mounts /boot from the root filesystem, so a + # mountpoint alone must NOT skip mirroring. Skip only when /boot is a truly + # separate filesystem (XBOOTLDR) that OSTree writes directly. + if mountpoint -q /boot && [[ "$(stat -c %d /boot)" != "$(stat -c %d /)" ]]; then exit 0; fi src=/sysroot/boot/ostree dst=/efi/ostree esrc=/sysroot/boot/loader/entries