ubuntu-cpc: Add /dev/pts to hook env, also settle disks after UEFI builds

ubuntu/trusty
Robert C Jennings 8 years ago
parent 323da962e5
commit 004ee17e1f

9
debian/changelog vendored

@ -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 <robert.jennings@canonical.com> Tue, 23 May 2017 20:12:47 -0500
livecd-rootfs (2.209.3) trusty; urgency=medium
[Ben Howard]

@ -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"
}

@ -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
}

Loading…
Cancel
Save