comparison pi-setup/tasks.py @ 313:b3acb9fff274

updates for new ga-iot (pi reformat of host=garage)
author drewp@bigasterisk.com
date Mon, 23 Sep 2024 00:32:36 -0700
parents 3af02e24eaf9
children 4d1b6a6e65d2
comparison
equal deleted inserted replaced
312:5f8d328e32b3 313:b3acb9fff274
10 def init_workspace(ctx): 10 def init_workspace(ctx):
11 ctx.run(cmd + 'pdm run -p .. setup_pi.py --init', pty=True) 11 ctx.run(cmd + 'pdm run -p .. setup_pi.py --init', pty=True)
12 12
13 @task 13 @task
14 def setup_pi(ctx, hostname, serial): 14 def setup_pi(ctx, hostname, serial):
15 ctx.run("qemu-img --version") # fail fast
15 ctx.run(cmd + f'pdm run -p .. setup_pi.py {hostname} {serial}', pty=True) 16 ctx.run(cmd + f'pdm run -p .. setup_pi.py {hostname} {serial}', pty=True)
16 17
17 18
18 @task 19 @task
19 def iscsi(ctx, hostname): 20 def iscsi(ctx, hostname):