diff --git a/chv-guest/build.sh b/chv-guest/build.sh index 6719d81..3c1fa26 100755 --- a/chv-guest/build.sh +++ b/chv-guest/build.sh @@ -191,7 +191,7 @@ VC_ARGS=(-a "$OUT/disk.raw" --run-command 'dpkg-query -W -f "${Package} ${Version}\n" > /app/guest-versions-dpkg.txt; pip3 freeze > /app/guest-versions-pip.txt || true') if [ "${PLAYWRIGHT:-1}" = "1" ]; then VC_ARGS+=( - --run-command 'pip3 install --no-cache-dir playwright; python3 -m playwright install --with-deps chromium' + --run-command '(pip3 install --no-cache-dir --break-system-packages playwright || pip3 install --no-cache-dir playwright) && python3 -m playwright install --with-deps chromium' --run-command 'dpkg-query -W -f "${Package} ${Version}\n" > /app/guest-versions-dpkg.txt; pip3 freeze > /app/guest-versions-pip.txt || true' --run-command 'ls /root/.cache/ms-playwright/ > /app/guest-versions-chromium.txt 2>/dev/null || true') fi