functions: use CHROOT_ROOT in snap_preseed

This commit is contained in:
Michael Vogt 2019-07-16 08:29:09 +02:00
parent 248efab2fd
commit 4fb73c2b19

View File

@ -642,7 +642,7 @@ snap_preseed() {
# downside is that each time a snap is added the seed must be valid,
# i.e. snaps with bases need to add bases first etc.
if [ -e chroot/var/lib/snapd/seed/seed.yaml ]; then
snap debug validate-seed chroot/var/lib/snapd/seed/seed.yaml
snap debug validate-seed "$CHROOT_ROOT/var/lib/snapd/seed/seed.yaml"
fi
}