Improve block devices detection during system startup
Not only refresh the info about mounted devices, but also check for others - detected before xenstored was running. Because of recent change in udev rules (adding flock) it shouldn't deadlock now.
This commit is contained in:
parent
40953176f4
commit
6b4c96d195
@ -13,9 +13,4 @@ cp /var/lib/qubes/qubes.xml /var/lib/qubes/backup/qubes-$(date +%F-%T).xml
|
|||||||
/usr/lib/qubes/cleanup-dispvms
|
/usr/lib/qubes/cleanup-dispvms
|
||||||
|
|
||||||
# Hide mounted devices from qubes-block list (at first udev run, only / is mounted)
|
# Hide mounted devices from qubes-block list (at first udev run, only / is mounted)
|
||||||
for dev in `xenstore-list /local/domain/0/qubes-block-devices 2> /dev/null`; do
|
udevadm trigger --action=change --subsystem-match=block
|
||||||
( eval `udevadm info -q property -n $dev|sed -e 's/\([^=]*\)=\(.*\)/export \1="\2"/'`;
|
|
||||||
/usr/lib/qubes/udev-block-add-change > /dev/null
|
|
||||||
)
|
|
||||||
done
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user