aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2013-07-07 19:41:34 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2013-07-07 19:41:34 -0400
commit7ec3940969c7c3e6751a2b00d145d027685d7d50 (patch)
treeffa06fd310bb4c7c16dece0846c221beb65f0714
parentcaf02eb88d9970d557635099d2057558d683bea6 (diff)
downloadkvm-manager-7ec3940969c7c3e6751a2b00d145d027685d7d50.tar.gz
kvm-manager-7ec3940969c7c3e6751a2b00d145d027685d7d50.tar.bz2
clean up some of the udev triggering
-rwxr-xr-xkvm-manager4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvm-manager b/kvm-manager
index 4dcac71..0b170b2 100755
--- a/kvm-manager
+++ b/kvm-manager
@@ -49,13 +49,13 @@ up() {
BOOTCHOICE=d
fi
- for disk in "$HDA" "$HDB" "HDC" "HDD"; do
+ for disk in "$HDA" "$HDB" "$HDC" "$HDD"; do
if printf "%s" "$disk" | grep '^/dev/mapper/'; then
mappername=$(printf "%s" "$disk" | sed 's!^/dev/mapper/!!')
udevadm trigger --subsystem-match=block --attr-match=dm/name="$mappername"
- udevadm trigger /dev/kvm
fi
done
+ udevadm trigger /dev/kvm
# set up the disks, if needed:
[ -z "$HDA" ] || KVMARGS="$KVMARGS -drive file=$HDA,if=virtio,id=hda,boot=on,format=raw"