diff options
-rwxr-xr-x | kvm-manager | 4 |
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" |