Improve teardown_mountpoint to recursively find all submounts and unmount them
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification]
The teardown_mountpoint function was back-ported to Xenial recently but
the hard coded list of mounts to unmount makes using it problematic when
different features require different set of mounts.
This change set improves 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.
[Test case]
Autopkgtest excercises this code-path but to be on the safe side all cloud images need to be test-built, too.
[Regression potential]
This change may break building images or the host system by unmounting host's mounts.
[Other Info]
* This is an improvement of LP: #1716992
* The fix also removes sleep / udevadm settle calls which seem to be obsolete
Related branches
Changed in livecd-rootfs (Ubuntu): | |
status: | New → Fix Released |
description: | updated |
The related fixes are merged to the packaging repository but they are also available in the full patch in LP #1721261
http:// bazaar. launchpad. net/~ubuntu- core-dev/ livecd- rootfs/ xenial- proposed/ revision/ 1423 bazaar. launchpad. net/~ubuntu- core-dev/ livecd- rootfs/ xenial- proposed/ revision/ 1424
http://