]> git.proxmox.com Git - pve-installer.git/commit
auto installer: make fetch print answer to stdout and explicitly run installer
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Apr 2024 10:59:13 +0000 (12:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 12:31:37 +0000 (14:31 +0200)
commit795ca4bcb90bb7672609d1476494dd8973c043a8
tree6098ef8c998ebfff982a53fa470c5b8903f74e8c
parent6484cc0f9e27c1ea26dc9b8b66e405ac5b5ff5de
auto installer: make fetch  print answer to stdout and explicitly run installer

Instead of executing the actual installer from inside a tool named
`fetch-answer` make it print the answer file content it queried to
stdout and use the outer "unconfigured" init process to redirect this
to a file inside run, which is then piped to the actual installer in a
separate command.

This makes the execution flow a bit easier to grasp when reading
unconfigured and allows to inspect the answer file in a debug session.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-fetch-answer/src/main.rs
unconfigured.sh