]> git.proxmox.com Git - pve-installer.git/commit - Cargo.toml
add auto-installer crate
authorAaron Lauterer <a.lauterer@proxmox.com>
Wed, 17 Apr 2024 12:30:39 +0000 (14:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 12:31:37 +0000 (14:31 +0200)
commitc7edc2e1d8c5412e1fddfce4bde026900ea1a7ed
tree6724755b190cf8ac869f40bc1559a0146e20f10b
parent74e54c4d8d865994913ef487f2e7f5117bb86929
add auto-installer crate

The new auto-installer is intended for unattended installations and
should be especially helpful for users with frequent and/or big
installations.

The main idea is that a answer file is provided by some mechanism,
e.g., on the ISO itself, on a separate (USB pen drive) partition, or
the network, which holds a somewhat generic config in form of a TOML
file that also supports wildcard glob'ing for selecting, e.g., target
disks for flexibility.

This is a initial implementation that will be improved and extended
over the next commits.

The installation config is currently generated through a dedicated
function (parse_answer) instead of a From implementation. This is
because for now the source data is spread over several other structs
in comparison to one in the TUI installer.

Logging is done to both stdout and a dedicated log file.

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>
 [ TL: Squash initial "build-up" patches ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Cargo.toml
Makefile
proxmox-auto-installer/Cargo.toml [new file with mode: 0644]
proxmox-auto-installer/src/answer.rs [new file with mode: 0644]
proxmox-auto-installer/src/lib.rs [new file with mode: 0644]
proxmox-auto-installer/src/log.rs [new file with mode: 0644]
proxmox-auto-installer/src/udevinfo.rs [new file with mode: 0644]
proxmox-auto-installer/src/utils.rs [new file with mode: 0644]