We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36be63 commit a694b3eCopy full SHA for a694b3e
nixos-anywhere-pxe.py
@@ -384,12 +384,14 @@ def build_pxe_image(netboot_image_flake: str) -> Path:
384
)
385
return Path(res.stdout.strip())
386
387
-
388
def pause():
389
print("")
390
- input(
391
- "Press [enter] to terminate this script and tear down the network to the server."
392
- )
+ # no clue how to flush stdin with python. Gonna wait for a specific string instead (as opposed to wait for [enter]).
+ answer = ""
+ while (answer != "continue"):
+ answer = input(
393
+ "Answer 'continue' to terminate this script and tear down the network to the server: "
394
+ )
395
396
397
def dispatch_dnsmasq(
0 commit comments