Otherwise it hangs when systemd is trying to umount them (Device or resource busy). See also comment in the patch. Umount lazily for nfs mounts. A bit of history for reference: commit a1c759a9524e00356fc952193bb2795dc9c54a18 commit 8f537d923bf833b1d57504e8e3058535b347fa2f commit 37144b9e86e801074fa4ae4656da458fe83f6e07 commit 93d177b0643a5488b8aa8777e43d4f3c4d57c51d ... and now adapt it for systemd. Corresponding f17 bug: #824191 --- pyanaconda/yuminstall.py | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py index 0ca534b..9d865a4 100644 --- a/pyanaconda/yuminstall.py +++ b/pyanaconda/yuminstall.py @@ -1228,6 +1228,19 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon if not anaconda.mediaDevice and os.path.ismount(self.ayum.tree): isys.umount(self.ayum.tree) + # bug #818581 - mounts from dracut would make systemd hang + # in reboot (Device or resource ebusy) when trying to umount + # them (after NM is stopped) + # - for repo=nfs: dracut nfs mounts /run/install/repo + # - for repo=nfsiso: dracut nfs mounts /run/install/isodir + # and iso mounts /run/install/repo + dracut_mounts = ["/run/install/repo", "/run/install/isodir"] + for mp in dracut_mounts: + if os.path.ismount(mp): + log.info("unmounting mount by dracut (lazily) %s" % mp) + iutil.execWithRedirect("umount", ["-l", mp], + stdout="/dev/tty5", stderr="/dev/tty5") + # clean up rpmdb locks so that kickstart %post scripts aren't # unhappy (#496961) iutil.resetRpmDb() -- 1.7.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list