Also adjust live-build/ubuntu-server/hooks/032-installer-squashfs.binary

to use teardown_mountpoint.
ubuntu/artful
Steve Langasek 7 years ago
parent 7757c10c2c
commit bacde14e41

4
debian/changelog vendored

@ -20,6 +20,10 @@ livecd-rootfs (2.454) UNRELEASED; urgency=medium
* live-build/ubuntu-cpc/functions: Remove umount_settle function. * live-build/ubuntu-cpc/functions: Remove umount_settle function.
The was only used where teardown_mountpoint was lacking. The was only used where teardown_mountpoint was lacking.
[ Steve Langasek ]
* Also adjust live-build/ubuntu-server/hooks/032-installer-squashfs.binary
to use teardown_mountpoint.
-- Steve Langasek <steve.langasek@ubuntu.com> Tue, 12 Sep 2017 14:33:02 -0700 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 12 Sep 2017 14:33:02 -0700
livecd-rootfs (2.453) artful; urgency=medium livecd-rootfs (2.453) artful; urgency=medium

@ -28,11 +28,11 @@ OVERLAY_ROOT=binary/boot/overlay.dir
mkdir -p "$OVERLAY_ROOT" mkdir -p "$OVERLAY_ROOT"
setup_mountpoint binary/boot/squashfs.dir
# Create an installer squashfs layer # Create an installer squashfs layer
mount_overlay "$SQUASH_ROOT/" "$OVERLAY_ROOT/" "$SQUASH_ROOT/" mount_overlay "$SQUASH_ROOT/" "$OVERLAY_ROOT/" "$SQUASH_ROOT/"
setup_mountpoint binary/boot/squashfs.dir
# Prepare installer layer. # Prepare installer layer.
# Install any requirements for the installer, for things we don't want # Install any requirements for the installer, for things we don't want
@ -147,17 +147,11 @@ AAHP0AEiHQ7zN0yLl7+fkYIMy64xQJqamH1Z2BFN0GWMPwTjpXpszOC+ev7Bpbg0xoldQ1tBHHxH
J4Weia71DnXOnt8cj1VhebVMlyv7B/TGAbGwgprgmQ== J4Weia71DnXOnt8cj1VhebVMlyv7B/TGAbGwgprgmQ==
EOF EOF
mv resolv.conf.tmp "binary/boot/squashfs.dir/etc/resolv.conf" teardown_mountpoint "$SQUASH_ROOT"
# Unmount the overlay first, where it is mounted: # Then unmount the overlay
umount "$SQUASH_ROOT" umount "$SQUASH_ROOT"
# Then we can start unmounting the "real" root:
umount "binary/boot/squashfs.dir/proc"
umount "binary/boot/squashfs.dir/sys"
umount -R "binary/boot/squashfs.dir/dev"
umount "binary/boot/squashfs.dir/tmp"
squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs" squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs"
(cd "$OVERLAY_ROOT/" && (cd "$OVERLAY_ROOT/" &&

Loading…
Cancel
Save