← Back to team overview

curtin-dev team mailing list archive

[Merge] ~ogayot/curtin:sfdisk-accept-utf8 into curtin:master

 

The proposal to merge ~ogayot/curtin:sfdisk-accept-utf8 into curtin:master has been updated.

Description changed to:

GPT partition names are basically free-text, but curtin expects the sfdisk input script to be ASCII.

We also inject the partition name in the sfdisk script without properly sanitizing the name. This results in problems if the name contains '"' or other characters that have a special meaning in sfdisk.

Fixed by converting the partition name to a utf-8 hex notation.

e.g.

name="name is réservé"

becomes:

name="name\x20is\x20r\xc3\xa9serv\xc3\xa9"

For more details, see:
https://code.launchpad.net/~ogayot/curtin/+git/curtin/+merge/442225
-- 
Your team curtin developers is requested to review the proposed merge of ~ogayot/curtin:sfdisk-accept-utf8 into curtin:master.



References