Red Hat Bugzilla – Bug 1273688
--make-ostree-live fails in blivet/util.py umount()
Last modified: 2016-02-11 17:58:08 EST
Created attachment 1084956 [details]
The kickstart used for ostree live pxe
Description of problem:
Using --make-ostree-live with --no-virt option. So it fails in blivet/util.py umount() which simply shells-out to the system umount command. The issue here is that ostree is apparently leaving sub-mounts under /mnt/sysimage for things like /var or /usr. Obviously one cannot umount a location that is still being used, due to sub-mounts. I was able to work-around the issue by hacking blivet to use recursion (aka umount --recursive /mnt/sysimage), but the issue of ostree leaving stuff mounted under /mnt/sysimage cannot be ignored. I'm not sure if ostree should be changed to cleanup after itself, or if blivet should gain recursive umount. Either way, we need to get those thing umount'ed under /mnt/sysimage.
Version-Release number of selected component (if applicable):
# rpm -q fedora-release python-blivet lorax anaconda ostree
100% using the attached kickstart
Steps to Reproduce:
1. livemedia-creator --no-virt --make-ostree-live --ks fedora-cloud-atomic-pxetolive.ks --live-rootfs-keep-size
bails in blivet/util.py:umount()
Created attachment 1084958 [details]
Anaconda TB file
Here is the Anaconda TB file, compressed.
Would this PR fix the problem?
(In reply to Radek Vykydal from comment #2)
> Would this PR fix the problem?
However the PR does not apply cleanly on my F22 test environment, and manually adding does not appear to succeed either.
But generally speaking the code in rpmostreepayload.py that does umount stuff looks encouraging. Probably minor tweaks to get working in Fedora.