fix build.sh and surgeon patch code

This commit is contained in:
Anderson Rosenberg 2025-09-05 17:04:08 -04:00
parent 809dcb6d5a
commit f1b1f76d1f
No known key found for this signature in database
GPG key ID: 7ACF448C0590AB9C
2 changed files with 3 additions and 3 deletions

View file

@ -38,4 +38,4 @@ cp shufflecake-c/shufflecake "$PWD/shufflecake"
# Restore the original crypto.h to avoid interference with future updates
cd shufflecake-c
git restore "shufflecake-c/$CRYPTO_H"
git restore $CRYPTO_H

View file

@ -20,10 +20,10 @@ set -u
# Patch create-snapshot
rm -f /sysroot/usr/lib/qubes/create-snapshot
cp /usr/share/scripts/create-snapshot.sh /sysroot/usr/lib/qubes/create-snapshot
cp /usr/local/share/scripts/create-snapshot.sh /sysroot/usr/lib/qubes/create-snapshot || true
# Patch config.py to allow for higher Qube IDs
sed 's/^max_qid = .*$/max_qid = 100000/' /usr/lib/python3.11/site-packages/qubes/config.py
sed 's/^max_qid = .*$/max_qid = 100000/' /sysroot/usr/lib/python3.11/site-packages/qubes/config.py || true
# Reassemble qubes.xml
qubes_xml='/sysroot/var/lib/qubes/qubes.xml'