From 9e5d57f5b914b169bbb7c4ecd9d5306e6b8190e5 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Mon, 26 Oct 2009 15:04:22 -0400 Subject: Don't attempt to chown non-existent netboot file. --- kvm-creator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm-creator b/kvm-creator index 40cc724..55aeccd 100755 --- a/kvm-creator +++ b/kvm-creator @@ -73,7 +73,7 @@ create() { for dir in .ssh vms "vms/$NAME"; do [ ! -d "/home/$NAME/$dir" ] && mkdir "/home/$NAME/$dir" done - chown "$NAME:$NAME" "/home/$NAME/"{.ssh,vms,"vms/$NAME","vms/$NAME/netboot"} + chown "$NAME:$NAME" "/home/$NAME/"{.ssh,vms,"vms/$NAME"} cp /root/.ssh/authorized_keys "/home/$NAME/.ssh/" lvcreate --name "$NAME" --size "$SIZE" $VG mkdir "/etc/sv/kvm/$NAME"{,/log,/env} -- cgit v1.2.3