Follow DLS' breaking changes, init rename and unlock API

This commit is contained in:
Guillaume
2023-11-06 17:17:02 +01:00
parent 01a457ccfe
commit 09e63cf400
4 changed files with 8 additions and 9 deletions

View File

@ -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))