aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2019-09-23 09:41:35 +0300
committerHongxu Jia <hongxu.jia@windriver.com>2019-09-23 21:58:02 +0800
commite4df888f9ee233b361a947753dcd82d4a34f4e18 (patch)
tree11d3aa8dd7ebca03bc27d7159d51957e95170e7b
parentaf01193cdeb599e17f9df800eb2054ad797d9eca (diff)
downloadmeta-anaconda-e4df888f9ee233b361a947753dcd82d4a34f4e18.tar.gz
meta-anaconda-e4df888f9ee233b361a947753dcd82d4a34f4e18.tar.bz2
meta-anaconda-e4df888f9ee233b361a947753dcd82d4a34f4e18.zip
initramfs-module-setup-live: call udev settle before umounting /run/media/*
This fixes a race conditition which leaves devices mounted, causing the following anaconda installation failure: File "/usr/lib64/python3.5/site-packages/gi/overrides/BlockDev.py", line 963, in wrapped raise transform[1](msg) File "/usr/lib64/python3.5/site-packages/blivet/devices/lvm.py", line 913, in _teardown blockdev.lvm.lvdeactivate(self.vg.name, self._name) File "/usr/lib64/python3.5/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib64/python3.5/site-packages/blivet/devices/storage.py", line 431, in teardown self._teardown(recursive=recursive) File "/usr/lib64/python3.5/site-packages/blivet/threads.py", line 53, in run_with_lock return m(*args, **kwargs) File "/usr/lib64/python3.5/site-packages/blivet/devices/lvm.py", line 1933, in teardown return DMDevice.teardown(self, recursive) gi.overrides.BlockDev.LVMError: Process reported exit code 5: Logical volume wrll_intel-x86-64/root contains a filesystem in use. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
-rw-r--r--recipes-installer/initrdscripts/files/umountfs3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-installer/initrdscripts/files/umountfs b/recipes-installer/initrdscripts/files/umountfs
index f01adea..4792110 100644
--- a/recipes-installer/initrdscripts/files/umountfs
+++ b/recipes-installer/initrdscripts/files/umountfs
@@ -3,6 +3,9 @@ umountfs_enabled() {
}
umountfs_run() {
+ # Make sure /run/media is fully populated
+ udevadm settle
+
# Umount other media for anaconda
for dir in `awk '/\/dev.* \/run\/media/{print $2}' /proc/mounts`; do
umount $dir