[Bug 2147921] Re: manifest can be wrong
Dan Bungert
2147921 at bugs.launchpad.net
Fri Apr 10 21:13:04 UTC 2026
This maybe (untested)
```
diff --git a/live-build/auto/build b/live-build/auto/build
index b633c10b..a08f6df3 100755
--- a/live-build/auto/build
+++ b/live-build/auto/build
@@ -563,9 +563,8 @@ elif [ -e "binary/$INITFS/filesystem.packages" ]; then
# '--initramfs none' produces different manifest names.
ln "binary/$INITFS/filesystem.packages" "$PREFIX.manifest"
elif [ -n "$PASSES" ]; then
- # For layered images, keep the manifest of the last pass
- for _PASS in $PASSES; do
- ln -f "${CASPER_DIR}/$_PASS.manifest.full" "$PREFIX.manifest"
+ for _PASS in $LIVE_PASSES; do
+ ln -f ${_PASS}.full.manifest "$PREFIX.manifest"
done
fi
chmod 644 "$PREFIX.manifest"
```
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/2147921
Title:
manifest can be wrong
Status in livecd-rootfs package in Ubuntu:
Confirmed
Bug description:
Since this MP, the manifest produced for some ISOs is wrong.
https://code.launchpad.net/~skia/livecd-rootfs/+git/livecd-rootfs/+merge/503356
For example:
build: https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/resolute/ubuntu/+build/940399
log: https://launchpadlibrarian.net/856172835/buildlog_ubuntu_resolute_amd64_ubuntu_BUILDING.txt.gz
This is an Ubuntu Desktop build from 20260410, and we can see the many layers produced (search for `Delta manifest` in the build log).
The one surfaced in the artifacts is the very last one, due to the logic implemented in the MP above, and that means the `zh` layer:
```
Delta manifest:
--- /build/config/iso-dir/iso-root/casper/minimal.manifest.full 2026-04-10 06:21:52.870807314 +0000
+++ /build/config/iso-dir/iso-root/casper/minimal.zh.manifest.full 2026-04-10 06:48:36.145883155 +0000
```
This is obviously not correct, but also, what should be the correct behavior? What layer is "the right one", in a kinda generic way?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2147921/+subscriptions
More information about the foundations-bugs
mailing list