mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-06 16:31:35 +00:00
Import patches-unapplied version 2.456 to ubuntu/artful-proposed
Imported using git-ubuntu import. Changelog parent: 3adf9af2a9d022af3323c328c130ca95842f1181 New changelog entries: * Improve teardown_mountpoint to recursively find all submounts and unmount them, instead of working from a hard-coded list. This makes the code resilient against other submounts being added later, including downstream. * Also nuke the sleep / udevadm settle calls in the process, which should never be required and slow down the builds. [ Michael Hudson-Doyle ] * set a default netplan config of dhcp-on-ethernet for the server live image
This commit is contained in:
parent
3adf9af2a9
commit
62cc84825d
14
debian/changelog
vendored
14
debian/changelog
vendored
@ -1,3 +1,17 @@
|
|||||||
|
livecd-rootfs (2.456) artful; urgency=medium
|
||||||
|
|
||||||
|
* Improve teardown_mountpoint to recursively find all submounts and
|
||||||
|
unmount them, instead of working from a hard-coded list. This makes
|
||||||
|
the code resilient against other submounts being added later, including
|
||||||
|
downstream.
|
||||||
|
* Also nuke the sleep / udevadm settle calls in the process, which should
|
||||||
|
never be required and slow down the builds.
|
||||||
|
|
||||||
|
[ Michael Hudson-Doyle ]
|
||||||
|
* set a default netplan config of dhcp-on-ethernet for the server live image
|
||||||
|
|
||||||
|
-- Steve Langasek <steve.langasek@ubuntu.com> Wed, 13 Sep 2017 22:35:03 -0700
|
||||||
|
|
||||||
livecd-rootfs (2.455) artful; urgency=medium
|
livecd-rootfs (2.455) artful; urgency=medium
|
||||||
|
|
||||||
* Restore the call to 'umount -R $mountpoint' from umount_partition,
|
* Restore the call to 'umount -R $mountpoint' from umount_partition,
|
||||||
|
@ -95,14 +95,13 @@ teardown_mountpoint() {
|
|||||||
# Reverse the operations from setup_mountpoint
|
# Reverse the operations from setup_mountpoint
|
||||||
local mountpoint="$1"
|
local mountpoint="$1"
|
||||||
|
|
||||||
umount "$mountpoint/var/cache/apt"
|
# ensure we have exactly one trailing slash, and escape all slashes for awk
|
||||||
umount "$mountpoint/var/lib/apt"
|
mountpoint_match=$(echo "$mountpoint" | sed -e's,/$,,; s,/,\\/,g;')'\/'
|
||||||
umount "$mountpoint/tmp"
|
# sort -r ensures that deeper mountpoints are unmounted first
|
||||||
umount "$mountpoint/sys"
|
for submount in $(awk </proc/self/mounts "\$2 ~ /$mountpoint_match/ \
|
||||||
umount "$mountpoint/proc"
|
{ print \$2 }" | LC_ALL=C sort -r); do
|
||||||
umount -R "$mountpoint/dev"
|
umount $submount
|
||||||
udevadm settle
|
done
|
||||||
sleep 3
|
|
||||||
mv resolv.conf.tmp "$mountpoint/etc/resolv.conf"
|
mv resolv.conf.tmp "$mountpoint/etc/resolv.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,8 +112,6 @@ install_grub() {
|
|||||||
rm mountpoint/tmp/device.map
|
rm mountpoint/tmp/device.map
|
||||||
sync
|
sync
|
||||||
umount mountpoint/boot/efi
|
umount mountpoint/boot/efi
|
||||||
sleep 5
|
|
||||||
udevadm settle
|
|
||||||
mount
|
mount
|
||||||
umount_partition mountpoint
|
umount_partition mountpoint
|
||||||
rmdir mountpoint
|
rmdir mountpoint
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
# This is the initial network config.
|
||||||
|
# It can be overwritten by cloud-init or subiquity.
|
||||||
|
network:
|
||||||
|
version: 2
|
||||||
|
ethernets:
|
||||||
|
all-en:
|
||||||
|
match:
|
||||||
|
name: "en*"
|
||||||
|
dhcp4: true
|
||||||
|
all-eth:
|
||||||
|
match:
|
||||||
|
name: "eth*"
|
||||||
|
dhcp4: true
|
Loading…
x
Reference in New Issue
Block a user