initramfs-module-setup-live: call udev settle before umounting /run/media/*
PATCH 1/1 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.
--- recipes-installer/initrdscripts/files/umountfs | 3 +++ 1 file changed, 3 insertions(+)
recipes-installer/initrdscripts/files/umountfs +3 -0
@@ -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
Signature · 1 line
2.18.1
Merged
//Hongxu
Quoted 35 lines · Ovidiu Panait
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, inrun_with_lock
returnm(*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, inrun_with_lock
returnm(*args, **kwargs)
File "/usr/lib64/python3.5/site-packages/blivet/devices/lvm.py", line 1933, in teardown
returnDMDevice.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 <[email protected]>--- recipes-installer/initrdscripts/files/umountfs | 3 +++ 1 file changed, 3 insertions(+)recipes-installer/initrdscripts/files/umountfs +3
-0@@ -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