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
e2a0c22299
commit
3a8427cee5
@ -53,8 +53,12 @@ start()
|
|||||||
MEMINFO_DELAY_USEC=100000
|
MEMINFO_DELAY_USEC=100000
|
||||||
/usr/lib/qubes/meminfo-writer $MEM_CHANGE_THRESHOLD_KB $MEMINFO_DELAY_USEC &
|
/usr/lib/qubes/meminfo-writer $MEM_CHANGE_THRESHOLD_KB $MEMINFO_DELAY_USEC &
|
||||||
|
|
||||||
# Reply block events to 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)
|
||||||
udevadm trigger --subsystem-match=block --action=add
|
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
|
touch /var/lock/subsys/qubes_core
|
||||||
success
|
success
|
||||||
|
Loading…
Reference in New Issue
Block a user