diff --git a/debian/changelog b/debian/changelog index 220fa4ef..610520bc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +livecd-rootfs (2.209.4) trusty; urgency=medium + + [Ben Howard] + * ubuntu-cpc: + - add devpts-live to hook builds + - add logic to settle the disks after UEFI builds + + -- Robert C Jennings Tue, 23 May 2017 20:12:47 -0500 + livecd-rootfs (2.209.3) trusty; urgency=medium [Ben Howard] diff --git a/live-build/ubuntu-cpc/functions b/live-build/ubuntu-cpc/functions index b5500e70..a966840f 100644 --- a/live-build/ubuntu-cpc/functions +++ b/live-build/ubuntu-cpc/functions @@ -46,6 +46,7 @@ mount_partition() { mount "$partition" "$mountpoint" mount --bind /dev "$mountpoint/dev" + mount devpts-live -t devpts "$mountpoint/dev/pts" mount proc-live -t proc "$mountpoint/proc" mount sysfs-live -t sysfs "$mountpoint/sys" mv "$mountpoint/etc/resolv.conf" resolv.conf.tmp @@ -58,6 +59,7 @@ umount_partition() { mv resolv.conf.tmp "$mountpoint/etc/resolv.conf" umount "$mountpoint/proc" umount "$mountpoint/sys" + umount "$mountpoint/dev/pts" umount "$mountpoint/dev" umount "$mountpoint" } diff --git a/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary b/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary index e0e90c18..88530c6e 100644 --- a/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary +++ b/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary @@ -116,7 +116,11 @@ EOF chroot mountpoint apt-get -y update rm mountpoint/tmp/device.map + sync umount mountpoint/boot/efi + sleep 5 + udevadm settle + mount umount_partition mountpoint rmdir mountpoint }