functions: use CHROOT_ROOT in snap_preseed

u-i-cloud-init
Michael Vogt 6 years ago
parent 248efab2fd
commit 4fb73c2b19

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

Loading…
Cancel
Save