pve-installer/proxmox-fetch-answer
Filip Schauer fa97aeb1f5 fetch-answer: encode unsafe characters in partition label
Ensure potentially unsafe characters in the partition label are encoded,
preventing the installer from failing to find the answer partition when
the label contains whitespaces or !"$%&'()*,/;<>?[\]^`{|}~

The encoding is done according to `blkid_encode_string` [0] in the blkid
util, which is used by `/lib/udev/rules.d/60-persistent-storage.rules`
to create a symlink under `/dev/disk/by-label/`.

For example: "ANSWER PART" is encoded to "ANSWER\x20PART"

[0] https://github.com/util-linux/util-linux/blob/master/libblkid/src/encode.c

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
Tested-by: Christoph Heiss <c.heiss@proxmox.com>
2024-11-19 17:04:13 +01:00
..
src fetch-answer: encode unsafe characters in partition label 2024-11-19 17:04:13 +01:00
Cargo.toml fetch-answer: add $fetchinfo meta-field to HTTP POST payload 2024-11-14 20:53:37 +01:00