[pve-devel] applied: [PATCH installer v2] fetch-answer: encode unsafe characters in partition label
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Nov 19 18:47:46 CET 2024
Am 19.11.24 um 16:56 schrieb Filip Schauer:
> 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 at proxmox.com>
> Tested-by: Christoph Heiss <c.heiss at proxmox.com>
> ---
> Changed since v1:
> * Log the non-encoded label instead of the encoded one when a partition
> is found.
>
> .../src/fetch_plugins/partition.rs | 22 ++++++++++++++++---
> 1 file changed, 19 insertions(+), 3 deletions(-)
>
>
applied, thanks!
More information about the pve-devel
mailing list