]> git.proxmox.com Git - pve-installer.git/commit
answer: perform basic input validation for keyboard
authorChristian Ebner <c.ebner@proxmox.com>
Wed, 24 Apr 2024 08:48:50 +0000 (10:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Apr 2024 09:27:56 +0000 (11:27 +0200)
commitd2b009760127d2533deccb669108b1efadbb74ee
tree77614bccdb6a177ae9cc39174de431265245991a
parent6b747eb89e307116db3a5760e0d42465fd934cbe
answer: perform basic input validation for keyboard

Currently it is possible to validate and create an iso with an
invalid keyboad layout, only failing later during installation.

Add a basic check for correct keyboard layout by defining an enum
with allowed variants.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-auto-installer/src/answer.rs
proxmox-auto-installer/src/utils.rs