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

This commit is contained in:
Robert C Jennings 2017-05-25 20:35:20 -05:00
parent 323da962e5
commit 004ee17e1f
3 changed files with 15 additions and 0 deletions

9
debian/changelog vendored
View File

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

View File

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

View File

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