Follow DLS' breaking changes, init rename and unlock API
This commit is contained in:
@ -33,7 +33,7 @@ setup_network_qemu() {
|
||||
if ! test -d /etc/qemu; then
|
||||
mkdir -p /etc/qemu
|
||||
fi
|
||||
if ! grep -q "allow $QEMU_BR_NAME" /etc/qemu/bridge.conf; then
|
||||
if ! grep -qs "allow $QEMU_BR_NAME" /etc/qemu/bridge.conf; then
|
||||
echo "allow $QEMU_BR_NAME" >> /etc/qemu/bridge.conf
|
||||
fi
|
||||
}
|
||||
@ -46,7 +46,7 @@ run_qemu() {
|
||||
pinfo "Starting host $host with ip ${hosts[$host]}"
|
||||
qemu-system-x86_64 -enable-kvm -smp $QEMU_VM_CPU -m $QEMU_VM_MEM \
|
||||
-nic bridge,br=$QEMU_BR_NAME,mac=42:42:42:42:42:0${id} \
|
||||
-kernel $ctxdir/data/$host/kernel -initrd $ctxdir/data/$host/initrd-v2 -vga qxl \
|
||||
-kernel $ctxdir/data/$host/kernel -initrd $ctxdir/data/$host/initrd -vga qxl \
|
||||
-drive format=raw,file=$ctxdir/data/$host/disk &
|
||||
echo $! >$ctxdir/data/$host/pid
|
||||
((++id))
|
||||
|
||||
Reference in New Issue
Block a user