]> git.proxmox.com Git - pve-installer.git/commit - proxmox-auto-install-assistant/src/main.rs
auto installer: factor out fetch-answer and autoinst-helper
authorAaron Lauterer <a.lauterer@proxmox.com>
Wed, 17 Apr 2024 12:30:58 +0000 (14:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 12:31:37 +0000 (14:31 +0200)
commiteedc6521ce0af46d8235c66e7debe057df6ae6f9
tree00555ec132b15bb3a1c17ec60a07422bc520607e
parent1ca401af93a20c125bfd4c4ae07936444617e36a
auto installer: factor out fetch-answer and autoinst-helper

Putting proxmox-fetch-answer into it's own crate, will keep the use of
OpenSSL localized to where we need it. Otherwise building other binaries
will always depend on OpenSSL as well, even without actually needing it.

Having a dedicated crate for the proxmox-autoinst-helper should make it
easier to build it independently to have it available outside of the
install environment.

The fetch plugins have been moved to the proxmox-fetch-answer crate,
except for the 'get_nic_list' function and 'sysinfo.rs'. Since both are
also needed by the proxmox-autoinst-helper, they are kept in the
proxmox-auto-installer crate.

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>
23 files changed:
Cargo.toml
Makefile
proxmox-auto-installer/Cargo.toml
proxmox-auto-installer/src/bin/proxmox-autoinst-helper.rs [deleted file]
proxmox-auto-installer/src/bin/proxmox-fetch-answer.rs [deleted file]
proxmox-auto-installer/src/fetch_plugins/http.rs [deleted file]
proxmox-auto-installer/src/fetch_plugins/mod.rs [deleted file]
proxmox-auto-installer/src/fetch_plugins/partition.rs [deleted file]
proxmox-auto-installer/src/fetch_plugins/utils/mod.rs [deleted file]
proxmox-auto-installer/src/fetch_plugins/utils/post.rs [deleted file]
proxmox-auto-installer/src/fetch_plugins/utils/sysinfo.rs [deleted file]
proxmox-auto-installer/src/lib.rs
proxmox-auto-installer/src/sysinfo.rs [new file with mode: 0644]
proxmox-auto-installer/src/utils.rs
proxmox-autoinst-helper/Cargo.toml [new file with mode: 0644]
proxmox-autoinst-helper/src/main.rs [new file with mode: 0644]
proxmox-fetch-answer/Cargo.toml [new file with mode: 0644]
proxmox-fetch-answer/src/fetch_plugins/http.rs [new file with mode: 0644]
proxmox-fetch-answer/src/fetch_plugins/mod.rs [new file with mode: 0644]
proxmox-fetch-answer/src/fetch_plugins/partition.rs [new file with mode: 0644]
proxmox-fetch-answer/src/fetch_plugins/utils/mod.rs [new file with mode: 0644]
proxmox-fetch-answer/src/fetch_plugins/utils/post.rs [new file with mode: 0644]
proxmox-fetch-answer/src/main.rs [new file with mode: 0644]