<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:"Arial",sans-serif;
color:black;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-US">Has anyone any suggestions for this? Just a hint of how to tackle this if this is not a good idea for a solution?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> elbe-devel <elbe-devel-bounces@linutronix.de>
<b>Im Auftrag von </b>Steih, Martin<br>
<b>Gesendet:</b> Donnerstag, 13. Januar 2022 22:08<br>
<b>An:</b> elbe-devel@linutronix.de<br>
<b>Betreff:</b> [elbe-devel] Add name to a gpthd partition<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div id="divtagdefaultwrapper">
<p style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">Would this be a viable solution to add support for partition names in case of gpthd? I hope I do not bother you with this, but it would really help to have this ability.<o:p></o:p></span></p>
<p style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">index 696225925..e151ef289 100644<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">--- a/elbepack/hdimg.py<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+++ b/elbepack/hdimg.py<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">@@ -335,6 +335,10 @@ def create_partition(<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> ppart.setFlag(_ped.PARTITION_LBA)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> else:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> ppart = parted.Partition(disk, ptype, geometry=g)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ if disk.type == "gpt" and \<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ part.has("name"):<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ ppart.set_name(part.text("name"))<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> cons = parted.Constraint(exactGeom=g)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> disk.addPartition(ppart, cons)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">index 34f4562c0..551e354ba 100644<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">--- a/schema/dbsfed.xsd<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+++ b/schema/dbsfed.xsd<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">@@ -1807,6 +1807,13 @@<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> </documentation><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> </annotation><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> </element><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ <element name="name" type="rfs:string" minOccurs="0" maxOccurs="1"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ <annotation><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ <documentation><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ human readable name of the partition used for naming a gpt partition<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ </documentation><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ </annotation><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black">+ </element><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> <element name="binary" type="rfs:string" minOccurs="0"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> <annotation><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"> <documentation><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="margin-left:35.4pt"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<div id="Signature">
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="5%" style="width:5.1%;margin-left:35.4pt;border-collapse:collapse">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm"></td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm"></td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">i. A. Martin Steih</span><span style="font-family:"Calibri",sans-serif;color:black"> </span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><br>
Projektleiter</span><span style="font-family:"Calibri",sans-serif;color:black"> </span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><br>
Entwicklung</span><span style="font-family:"Calibri",sans-serif;color:black"><br>
<br>
</span><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#D51231">Lachmann & Rink GmbH</span></b><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:black"><o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#42454A"><a href="mailto:Martin.Steih@lachmann-rink.de" title="Click to send email to Steih, Martin" id="LPNoLP">Martin.Steih@lachmann-rink.de</a>
| <a href="https://www.lachmann-rink.de" id="LPNoLP">www.lachmann-rink.de</a><br>
fon: <a href="tel:+49%202734%202817%20430" id="LPNoLP"><span style="color:#42454A;text-decoration:none">+49 2734 2817 430</span></a><br>
<br>
Hommeswiese 129, 57258 Freudenberg | Otto-Hahn-Straße 18-20, 44227 Dortmund<br>
Geschäftsführer: Dipl.-Ing. Arjan Bijlard, Dipl.-Inf. Claudius Rink | Amtsgericht Siegen, HRB 2600<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>