-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdebian-12-production.py
executable file
·41 lines (37 loc) · 1.46 KB
/
debian-12-production.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/python3
# FIXME: merge this "preset" and "loop" functionality into main.py
import datetime # FIXME: workaround for broken TBS driver
import subprocess
for args in [
# No qemu, **EXCEPT FOR** desktop-staff-amc, which
# Mike wants to expose via spice-html5.
['--physical-only',
'--templates',
'understudy',
# 'tvserver', # FIXME: workaround for broken TBS driver
'desktop-inmate-amc',
'desktop-inmate-amc-library'],
['--templates',
'desktop-staff-amc']]:
subprocess.check_call([
'./debian-12-main.py',
# Hard-code $LANG and $TZ instead of inheriting from build host.
'--LANG', 'en_AU.UTF-8', '--TZ', 'Australia/Canberra',
'--netboot-only', # no ISO/USB
'--ssh=openssh-server', # PrisonPC needs this
'--production',
'--upload-to', 'root@tweak.prisonpc.com', 'root@amc.prisonpc.com',
*args,
])
# FIXME: workaround for broken TBS driver
subprocess.check_call([
'./debian-11-main.py',
'--remove',
# Hard-code $LANG and $TZ instead of inheriting from build host.
'--LANG', 'en_AU.UTF-8', '--TZ', 'Australia/Canberra',
'--netboot-only', # no ISO/USB
'--physical-only',
'--ssh=openssh-server', # PrisonPC needs this
f'--reproducible={datetime.date.today()}',
'--upload-to', 'root@tweak.prisonpc.com', 'root@amc.prisonpc.com',
'--template', 'tvserver'])