No need to use rsync in hooks now to avoid file duplication since layer handling as a whole now uses rsync.

canary-as-default
Steve Langasek 1 year ago committed by Michael Hudson-Doyle
parent b43e3b84f4
commit 2b80fdecd2

2
debian/changelog vendored

@ -8,6 +8,8 @@ livecd-rootfs (23.10.21) UNRELEASED; urgency=medium
- Consolidate canary layers to merge 'classic' back into 'standard' - Consolidate canary layers to merge 'classic' back into 'standard'
- Reset /var/lib/snapd in the upper layers before calling snap - Reset /var/lib/snapd in the upper layers before calling snap
prepare-image prepare-image
- No need to use rsync in hooks now to avoid file duplication since layer
handling as a whole now uses rsync.
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Wed, 23 Aug 2023 11:15:26 +1200 -- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Wed, 23 Aug 2023 11:15:26 +1200

@ -141,5 +141,5 @@ reset_snapd_state chroot
env SNAPPY_STORE_NO_CDN=1 snap prepare-image \ env SNAPPY_STORE_NO_CDN=1 snap prepare-image \
--classic config/classic-model.model $channel chroot --classic config/classic-model.model $channel chroot
mv chroot/system-seed/systems/* chroot/system-seed/systems/enhanced-secureboot-desktop mv chroot/system-seed/systems/* chroot/system-seed/systems/enhanced-secureboot-desktop
rsync -a chroot/system-seed/ chroot/var/lib/snapd/seed rm -rf chroot/var/lib/snapd/seed
rm -rf chroot/system-seed/ mv chroot/system-seed chroot/var/lib/snapd/seed

@ -137,8 +137,8 @@ reset_snapd_state chroot
env SNAPPY_STORE_NO_CDN=1 snap prepare-image \ env SNAPPY_STORE_NO_CDN=1 snap prepare-image \
--classic config/classic-model-installer.model $channel chroot --classic config/classic-model-installer.model $channel chroot
mv chroot/system-seed/systems/* chroot/system-seed/systems/classic-installer mv chroot/system-seed/systems/* chroot/system-seed/systems/classic-installer
rsync -a chroot/system-seed/ chroot/var/lib/snapd/seed rm -rf chroot/var/lib/snapd/seed
rm -rf chroot/system-seed/ mv chroot/system-seed chroot/var/lib/snapd/seed
cat <<EOF > chroot/var/lib/snapd/modeenv cat <<EOF > chroot/var/lib/snapd/modeenv
mode=run mode=run

Loading…
Cancel
Save