Re: Helloworld Anaconda add-on

edsionte <[email protected]> Wed, 6 Nov 2019 20:10:04 +0800
Newsgroups gmane.linux.redhat.anaconda.devel
Message-ID <CAGa4GEpfTQH15t+RO7iFVZUUmR-MVMCgwy+tuMjcCZ2h1o+-5w@mail.gmail.com>
--===============4734688718872969846==
Content-Type: multipart/alternative; boundary="0000000000007a22890596ac6e6d"

--0000000000007a22890596ac6e6d
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Thanks!

<[email protected]>=E4=BA=8E2019=E5=B9=B411=E6=9C=886=E6=97=A5 =E5=91=A8=
=E4=B8=8917:42=E5=86=99=E9=81=93=EF=BC=9A

> On Wed, 2019-11-06 at 10:24 +0100, [email protected] wrote:
>
> On Wed, 2019-11-06 at 17:08 +0800, edsionte wrote:
>
> yes! It works right now.  :)
> Thanks.
>
>
> Great! :).
>
>
> And what's the difference between these two branch?
>
>
> We are making bigger changes in Fedora Rawhide to switch Anaconda to a
> modular Anaconda. Read here for more info:
>
> https://rhinstaller.wordpress.com/2017/10/09/anaconda-modularisation/
>
>
> Another source of information could be presentation:
>
>
> https://beta.lbry.tv/@ITConferences:5/DevConf-JiriKonecny--Anaconda_is_st=
ill_Evolving:9
>
> or in YT if you don't like LBRY:
>
> https://youtu.be/00W8SsRrU8g?t=3D458
>
> Jirka
>
>
>
> The differences are mostly thanks to that.
>
> Jirka
>
>
> <[email protected]> =E4=BA=8E2019=E5=B9=B411=E6=9C=886=E6=97=A5=E5=91=
=A8=E4=B8=89 =E4=B8=8B=E5=8D=884:36=E5=86=99=E9=81=93=EF=BC=9A
>
> Ohh, I've missed that you are trying to create the addon on CentOS-7.
>
> Right now, you are using master branch which is for Fedora Rawhide. For
> CentOS-7 you have to use rhel7-branch
>
> https://github.com/rhinstaller/hello-world-anaconda-addon/tree/rhel7-bran=
ch
>
> Try to use this and see if it will help you.
>
> On Wed, 2019-11-06 at 16:20 +0800, edsionte wrote:
>
> Thanks your reply,
>
> =E2=80=9Cinst.updates=3Dhd:/sdb4:/images/updates.img =E2=80=9D  was my wr=
iting error=EF=BC=8Csorry
> for that.
>
> Actually, I used "inst.updates=3Dhd:sdb4:/images/updates.img" as you said
> above, and the menu hasn't new category.
> I  have read :
>
> pyanaconda/ui/categories/__init__.py
> pyanaconda/ui/categories/system.py
>
> After comparing with these files, I found that
> =E2=80=9Chello-world-anaconda-addon/org_fedora_hello_world/categories/hel=
lo_world.py=E2=80=9D
> are missing the following  lines=EF=BC=9A
>
> *displayOnHubGUI=3D"SummaryHub"*
> *displayOnHubTUI=3D"SummaryHub"*
> *sortOrder =3D 100*
>
> displayOnHubGUI  default value is* none*.
> The comment in the code says that if this value is none, then this
> category will not be displayed.
>
> SO I add these lines in
> =E2=80=9Chello-world-anaconda-addon/org_fedora_hello_world/categories/hel=
lo_world.py=E2=80=9D.
>
> but, when the installer runs, click Continue button in Welcome page(choss=
e
> language), there is a error message page,
> and the* More Info* is shown=EF=BC=9A
>
> */usr/lib64/python2.7/sit-packages/pyanaconda/ui/gui/hubs/__init__.py,
> line 132, in _createBox()*
> *  spoke=3DspokeClass(self.data, self.storage, self.payload, self.instcla=
ss)*
>
> *=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=
*
> *TypeError: __init__() takes exactly 4 arguments (5 given)*
>
> Now, what should I do next =EF=BC=9F
> :(
>
> <[email protected]> =E4=BA=8E2019=E5=B9=B411=E6=9C=886=E6=97=A5=E5=91=
=A8=E4=B8=89 =E4=B8=8B=E5=8D=883:48=E5=86=99=E9=81=93=EF=BC=9A
>
> Hello,
>
> You should use:
>
> inst.updates=3Dhd:/dev/sdb4:/images/updates.img
>
> or
>
> inst.updates=3Dhd:sdb4:/images/updates.img
>
>
> For more info please see:
>
>
> https://anaconda-installer.readthedocs.io/en/latest/boot-options.html#ins=
t-repo
>
> It's using the same syntax as inst.updates.
>
> Best Regards,
> Jirka
>
> On Wed, 2019-11-06 at 13:25 +0800, edsionte wrote:
>
> Hi all,
>
> I want to test my first =E2=80=9Chello word=E2=80=9D Anaconda addon progr=
am.
>
> Firstly, I use this source code (
> https://github.com/rhinstaller/hello-world-anaconda-addon/
> <https://github.com/rhinstaller/hello-world-anaconda-addon/blob/master/Ma=
kefile>)
> =EF=BC=8C and make a outfile updates.img.
> Then, I made a USB boot disk =EF=BC=88CentOS 7.4=EF=BC=89, and placed upd=
ates.img into the
> directory =E2=80=9Cimages/=E2=80=9D  of boot disk.
>
> Then I used inst.updates=3Dhd:/sdb4:/images/updates.img boot option, Ther=
e
> isn't a new helloworld Category on the installation menu.
>
> Is there anything wrong with steps above=EF=BC=9F
>
> Thanks.
> edison
>
> _______________________________________________
>
> Anaconda-devel-list mailing list
>
> [email protected]
>
>
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
>
>

--0000000000007a22890596ac6e6d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div><br></div><div><div dir=3D"auto">Thanks!</div><br><div class=3D"gmail_=
quote"><div dir=3D"ltr" class=3D"gmail_attr">&lt;<a href=3D"mailto:jkonecny=
@redhat.com">[email protected]</a>&gt;=E4=BA=8E2019=E5=B9=B411=E6=9C=886=
=E6=97=A5 =E5=91=A8=E4=B8=8917:42=E5=86=99=E9=81=93=EF=BC=9A<br></div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex"><div style=3D"text-align:left;direction:ltr"><div=
>On Wed, 2019-11-06 at 10:24 +0100, <a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a> wrote:</div><blockquote type=3D"c=
ite" style=3D"margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:=
1ex"><div>On Wed, 2019-11-06 at 17:08 +0800, edsionte wrote:</div><blockquo=
te type=3D"cite" style=3D"margin:0 0 0 .8ex;border-left:2px #729fcf solid;p=
adding-left:1ex"><div dir=3D"ltr">yes! It works right now.=C2=A0 :)<div>Tha=
nks.</div></div></blockquote><div><br></div><div>Great! :).</div><div><br><=
/div><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex;border-left:2px #=
729fcf solid;padding-left:1ex"><div dir=3D"ltr"><div><br></div><div>And wha=
t&#39;s the difference between these two branch?=C2=A0</div></div></blockqu=
ote><div><br></div><div><div>We are making bigger changes in Fedora Rawhide=
 to switch Anaconda to a modular Anaconda. Read here for more info:</div><d=
iv><br></div><div><a href=3D"https://rhinstaller.wordpress.com/2017/10/09/a=
naconda-modularisation/" target=3D"_blank">https://rhinstaller.wordpress.co=
m/2017/10/09/anaconda-modularisation/</a></div></div></blockquote><div><br>=
</div><div>Another source of information could be presentation:</div><div><=
br></div><div><a href=3D"https://beta.lbry.tv/@ITConferences:5/DevConf-Jiri=
Konecny--Anaconda_is_still_Evolving:9" target=3D"_blank">https://beta.lbry.=
tv/@ITConferences:5/DevConf-JiriKonecny--Anaconda_is_still_Evolving:9</a></=
div><div><br></div><div>or in YT if you don&#39;t like LBRY:</div><div><br>=
</div><div><a href=3D"https://youtu.be/00W8SsRrU8g?t=3D458" target=3D"_blan=
k">https://youtu.be/00W8SsRrU8g?t=3D458</a></div><div><br></div><div>Jirka<=
/div></div><div style=3D"text-align:left;direction:ltr"><div><br></div><div=
><br></div><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex;border-left=
:2px #729fcf solid;padding-left:1ex"><div><div><br></div><div>The differenc=
es are mostly thanks to that.</div><div><br></div><div>Jirka</div></div><di=
v><br></div><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex;border-lef=
t:2px #729fcf solid;padding-left:1ex"><br><div class=3D"gmail_quote"><div d=
ir=3D"ltr" class=3D"gmail_attr">&lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt; =E4=BA=8E2019=E5=B9=B411=E6=
=9C=886=E6=97=A5=E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=884:36=E5=86=99=E9=81=93=
=EF=BC=9A<br></div><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex;bor=
der-left:2px #729fcf solid;padding-left:1ex"><div style=3D"text-align:left;=
direction:ltr"><div>Ohh, I&#39;ve missed that you are trying to create the =
addon on CentOS-7.</div><div><br></div><div>Right now, you are using master=
 branch which is for Fedora Rawhide. For CentOS-7 you have to use rhel7-bra=
nch</div><div><br></div><div><a href=3D"https://github.com/rhinstaller/hell=
o-world-anaconda-addon/tree/rhel7-branch" target=3D"_blank">https://github.=
com/rhinstaller/hello-world-anaconda-addon/tree/rhel7-branch</a></div><div>=
<br></div><div>Try to use this and see if it will help you.</div><div><br><=
/div><div>On Wed, 2019-11-06 at 16:20 +0800, edsionte wrote:</div><blockquo=
te type=3D"cite" style=3D"margin:0 0 0 .8ex;border-left:2px #729fcf solid;p=
adding-left:1ex"><div dir=3D"ltr">Thanks your reply,<div><br></div><div>=E2=
=80=9Cinst.updates=3Dhd:/sdb4:/images/updates.img =E2=80=9D=C2=A0 was my=C2=
=A0writing error=EF=BC=8Csorry for that.</div><div><br></div><div>Actually,=
 I used &quot;inst.updates=3Dhd:sdb4:/images/updates.img&quot; as you said =
above, and the menu hasn&#39;t new category.</div><div>I=C2=A0 have read :<=
/div><div><br></div><div>pyanaconda/ui/categories/__init__.py</div><div>pya=
naconda/ui/categories/system.py=C2=A0=C2=A0<br></div><div><br></div><div>Af=
ter comparing with these files, I found that =E2=80=9Chello-world-anaconda-=
addon/org_fedora_hello_world/categories/hello_world.py=E2=80=9D are missing=
 the following=C2=A0 lines=EF=BC=9A</div><div><br></div><div><b>displayOnHu=
bGUI=3D&quot;SummaryHub&quot;</b></div><div><b>displayOnHubTUI=3D&quot;Summ=
aryHub&quot;</b></div><div><b>sortOrder =3D 100</b></div><div><b><br></b></=
div><div>displayOnHubGUI=C2=A0 default value is<b> none</b>.=C2=A0</div><di=
v>The comment in the code says that if this value is none, then this catego=
ry will not be displayed.<b><br></b></div><div><br></div><div>SO I add thes=
e lines in=C2=A0

=E2=80=9Chello-world-anaconda-addon/org_fedora_hello_world/categories/hello=
_world.py=E2=80=9D.</div><div><br></div><div>but, when the installer runs, =
click Continue button in Welcome page(chosse language), there is a error me=
ssage page,=C2=A0</div><div>and the<b> More Info</b> is shown=EF=BC=9A</div=
><div><br></div><div><b>/usr/lib64/python2.7/sit-packages/pyanaconda/ui/gui=
/hubs/__init__.py, line 132, in _createBox()</b></div><div><b>=C2=A0 spoke=
=3DspokeClass(self.data, self.storage, self.payload, self.instclass)</b></d=
iv><div><b><br></b></div><div><b>=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=
=A6=E2=80=A6=E2=80=A6=E2=80=A6</b></div><div><b>TypeError: __init__() takes=
 exactly 4 arguments (5 given)</b><br></div><div><br></div><div>Now, what s=
hould I do next =EF=BC=9F=C2=A0</div><div>:(</div><div></div></div><br><div=
 class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">&lt;<a href=3D=
"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt; =
=E4=BA=8E2019=E5=B9=B411=E6=9C=886=E6=97=A5=E5=91=A8=E4=B8=89 =E4=B8=8B=E5=
=8D=883:48=E5=86=99=E9=81=93=EF=BC=9A<br></div><blockquote type=3D"cite" st=
yle=3D"margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><d=
iv style=3D"text-align:left;direction:ltr"><div>Hello,</div><div><br></div>=
<div>You should use:</div><div><br></div><div>inst.updates=3Dhd:/dev/sdb4:/=
images/updates.img</div><div><br></div><div>or </div><div><br></div><div>in=
st.updates=3Dhd:sdb4:/images/updates.img</div><div><br></div><div><br></div=
><div>For more info please see:</div><div><br></div><div><a href=3D"https:/=
/anaconda-installer.readthedocs.io/en/latest/boot-options.html#inst-repo" t=
arget=3D"_blank">https://anaconda-installer.readthedocs.io/en/latest/boot-o=
ptions.html#inst-repo</a></div><div><br></div><div>It&#39;s using the same =
syntax as inst.updates.</div><div><br></div><div>Best Regards,</div><div>Ji=
rka</div><div><br></div><div>On Wed, 2019-11-06 at 13:25 +0800, edsionte wr=
ote:</div><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex;border-left:=
2px #729fcf solid;padding-left:1ex"><div dir=3D"ltr">Hi all,<div><br></div>=
<div>I want to test my first =E2=80=9Chello word=E2=80=9D Anaconda addon pr=
ogram.</div><div><br></div><div>Firstly, I use this source code (=C2=A0<a h=
ref=3D"https://github.com/rhinstaller/hello-world-anaconda-addon/blob/maste=
r/Makefile" target=3D"_blank">https://github.com/rhinstaller/hello-world-an=
aconda-addon/</a>) =EF=BC=8C and make a outfile updates.img.=C2=A0</div><di=
v>Then,=C2=A0I made a USB boot disk =EF=BC=88CentOS 7.4=EF=BC=89, and place=
d updates.img into the directory =E2=80=9Cimages/=E2=80=9D=C2=A0 of boot di=
sk.</div><div><br></div><div>Then I used inst.updates=3Dhd:/sdb4:/images/up=
dates.img boot option, There isn&#39;t a new helloworld Category on the ins=
tallation menu.</div><div><br></div><div><span style=3D"color:rgb(36,41,46)=
;font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Helvetic=
a,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;=
;font-size:14px">Is there anything wrong with steps above=EF=BC=9F</span>=
=C2=A0=C2=A0<br></div><div><br></div><div>Thanks.</div><div>edison</div></d=
iv>
<pre>_______________________________________________</pre><pre>Anaconda-dev=
el-list mailing list</pre><a href=3D"mailto:[email protected]"=
 target=3D"_blank"><pre>[email protected]</pre></a><br><a href=
=3D"https://www.redhat.com/mailman/listinfo/anaconda-devel-list" target=3D"=
_blank"><pre>https://www.redhat.com/mailman/listinfo/anaconda-devel-list</p=
re></a></blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote>
</blockquote></div>
</blockquote></div></div>

--0000000000007a22890596ac6e6d--

--===============4734688718872969846==
Content-Type: text/plain; charset=WINDOWS-1252
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

_______________________________________________
Anaconda-devel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--===============4734688718872969846==--