dom0: do not reply all udev events at system boot (#595)
This can cause some rules to fail and eg remove dm-* devices. Replace it with what is really needed to hide mounted (and other ignored) devices from qubes-block-devices.
This commit is contained in:
parent
f39404cc8a
commit
dfbf078155
@ -55,8 +55,12 @@ start()
|
||||
|
||||
/usr/lib/qubes/block_cleaner_daemon.py > /var/log/qubes/block_cleaner.log 2>&1 &
|
||||
|
||||
# Reply block events to hide mounted devices from qubes-block list (at first udev run, only / is mounted)
|
||||
udevadm trigger --subsystem-match=block --action=add
|
||||
# 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`; do
|
||||
( eval `udevadm info -q property -n $dev|sed -e 's/\([^=]*\)=\(.*\)/export \1="\2"/'`;
|
||||
/usr/lib/qubes/block_add_change
|
||||
)
|
||||
done
|
||||
|
||||
touch /var/lock/subsys/qubes_core
|
||||
success
|
||||
|
Loading…
Reference in New Issue
Block a user