From cbb597a46ce97001c0a2db98524ead6d5997b703 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 19 Mar 2026 17:32:56 +0000 Subject: [PATCH] fix: bake LIVECD_ROOTFS_ROOT into config/functions Hooks that only source config/functions (not config/common) would fail with "LIVECD_ROOTFS_ROOT: parameter not set" when calling setup_mountpoint or any function that transitively calls it. This affected ubuntu, ubuntu-cpc, and buildd hooks. Rather than adding `. config/common` to every hook, prepend the LIVECD_ROOTFS_ROOT assignment to config/functions at config time so it is available to all callers automatically. --- live-build/auto/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/live-build/auto/config b/live-build/auto/config index 9d56312c..8284c37b 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -49,7 +49,9 @@ if [ -z "$MIRROR" ]; then fi mkdir -p config -cp -af ${LIVECD_ROOTFS_ROOT}/live-build/functions config/functions +echo "LIVECD_ROOTFS_ROOT=\"$LIVECD_ROOTFS_ROOT\"" > config/functions +chmod --reference=${LIVECD_ROOTFS_ROOT}/live-build/functions config/functions +cat ${LIVECD_ROOTFS_ROOT}/live-build/functions >> config/functions cp -af ${LIVECD_ROOTFS_ROOT}/live-build/lb_*_layered config/ cp -af ${LIVECD_ROOTFS_ROOT}/live-build/snap-seed-parse.py config/snap-seed-parse cp -af ${LIVECD_ROOTFS_ROOT}/live-build/snap-seed-missing-providers.py config/snap-seed-missing-providers