Add deployment of libvirt user-data

This commit is contained in:
Peter Šurda 2022-12-05 12:40:34 +08:00
parent fd0967a53d
commit a7076d3b65
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -144,6 +144,8 @@ cores=$(grep -E '^cpu cores' /proc/cpuinfo |head -1|cut -d: -f2|tr -d '[:space:]
mem=$(sed -E 's/^MemTotal: +([0-9]+) kB/\1/p;d' < /proc/meminfo) mem=$(sed -E 's/^MemTotal: +([0-9]+) kB/\1/p;d' < /proc/meminfo)
mempercore=$(((mem/1024-4096)/cores)) mempercore=$(((mem/1024-4096)/cores))
cp -f /usr/src/buildbot-workers/*.user /var/lib/libvirt/backingstore
# elcapitan 1 # elcapitan 1
for i in $(seq "$cores"); do for i in $(seq "$cores"); do