]> git.proxmox.com Git - pve-installer.git/commit - proxmox-auto-installer/src/fetch_plugins/utils/mod.rs
auto-installer: add fetch answer binary
authorAaron Lauterer <a.lauterer@proxmox.com>
Wed, 17 Apr 2024 12:30:47 +0000 (14:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 12:31:37 +0000 (14:31 +0200)
commit2949f8253920d9ecc46cf524c0278a3e1d92c567
tree11472b52daab556ed3dfd0ecb34f8e7bd10c9fb1
parent781f879edcd4bc83c7756d0a406bfbcfa2dff338
auto-installer: add fetch answer binary

it is supposed to be run first and fetch an answer file.

The initial implementation searches for a partition/filesystem called
'proxmoxinst' or 'PROXMOXINST' with an 'answer.toml' file in the root
directory.

Once it has an answer file, it will call the 'proxmox-auto-installer'
and pipe in the contents via stdin.

Tested-by: Christoph Heiss <c.heiss@proxmox.com>
Reviewed-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
proxmox-auto-installer/src/bin/proxmox-fetch-answer.rs [new file with mode: 0644]
proxmox-auto-installer/src/fetch_plugins/mod.rs [new file with mode: 0644]
proxmox-auto-installer/src/fetch_plugins/partition.rs [new file with mode: 0644]
proxmox-auto-installer/src/fetch_plugins/utils.rs [new file with mode: 0644]
proxmox-auto-installer/src/lib.rs