Re: Helloworld Anaconda add-on
edsionte <[email protected]> Wed, 6 Nov 2019 16:20:40 +0800
| Newsgroups | gmane.linux.redhat.anaconda.devel |
|---|---|
| Message-ID | <CAGa4GErPh_kgdDmdnZfq_5v5rYRgP+9UVWJwQdD1VpaSqFEMAA@mail.gmail.com> |
--===============7504762390993726993== Content-Type: multipart/alternative; boundary="00000000000015fb140596a93ab8" --00000000000015fb140596a93ab8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks your reply, =E2=80=9Cinst.updates=3Dhd:/sdb4:/images/updates.img =E2=80=9D was my writ= ing 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/hello= _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/hello= _world.py=E2=80=9D. but, when the installer runs, click Continue button in Welcome page(chosse 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.instclass= )* *=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 > > --00000000000015fb140596a93ab8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks your reply,<div><br></div><div>=E2=80=9Cinst.update= s=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 "in= st.updates=3Dhd:sdb4:/images/updates.img" as you said above, and the m= enu hasn't new category.</div><div>I=C2=A0 have read :</div><div><br></= div><div>pyanaconda/ui/categories/__init__.py</div><div>pyanaconda/ui/categ= ories/system.py=C2=A0=C2=A0<br></div><div><br></div><div>After comparing wi= th 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>displayOnHubGUI=3D"S= ummaryHub"</b></div><div><b>displayOnHubTUI=3D"SummaryHub"</= b></div><div><b>sortOrder =3D 100</b></div><div><b><br></b></div><div>displ= ayOnHubGUI=C2=A0 default value is<b> none</b>.=C2=A0</div><div>The comment = in the code says that if this value is none, then this category will not be= displayed.<b><br></b></div><div><br></div><div>SO I add these 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"><<a href=3D= "mailto:[email protected]">[email protected]</a>> =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 class=3D"gmail_quote" style=3D"m= argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left= :1ex"><div style=3D"text-align:left;direction:ltr"><div>Hello,</div><div><b= r></div><div>You should use:</div><div><br></div><div>inst.updates=3Dhd:/de= v/sdb4:/images/updates.img</div><div><br></div><div>or </div><div><br></div= ><div>inst.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" target=3D"_blank">https://anaconda-installer.readthedocs.io/en/lates= t/boot-options.html#inst-repo</a></div><div><br></div><div>It's using t= he same syntax as inst.updates.</div><div><br></div><div>Best Regards,</div= ><div>Jirka</div><div><br></div><div>On Wed, 2019-11-06 at 13:25 +0800, eds= ionte wrote:</div><blockquote type=3D"cite" style=3D"margin:0px 0px 0px 0.8= ex;border-left:2px solid rgb(114,159,207);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 program.</div><div><br></div><div>Firstly, I use this= source code (=C2=A0<a href=3D"https://github.com/rhinstaller/hello-world-a= naconda-addon/blob/master/Makefile" target=3D"_blank">https://github.com/rh= installer/hello-world-anaconda-addon/</a>) =EF=BC=8C and make a outfile upd= ates.img.=C2=A0</div><div>Then,=C2=A0I made a USB boot disk =EF=BC=88CentOS= 7.4=EF=BC=89, and placed updates.img into the directory =E2=80=9Cimages/= =E2=80=9D=C2=A0 of boot disk.</div><div><br></div><div>Then I used inst.upd= ates=3Dhd:/sdb4:/images/updates.img boot option, There isn't a new hell= oworld Category on the installation menu.</div><div><br></div><div><span st= yle=3D"color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&qu= ot;Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji",= "Segoe UI Emoji";font-size:14px">Is there anything wrong with ste= ps above=EF=BC=9F</span>=C2=A0=C2=A0<br></div><div><br></div><div>Thanks.</= div><div>edison</div></div> <pre>_______________________________________________</pre><pre>Anaconda-dev= el-list mailing list</pre><a href=3D"mailto:[email protected]"= target=3D"_blank"><pre>[email protected]</pre></a><pre><br></= pre><a href=3D"https://www.redhat.com/mailman/listinfo/anaconda-devel-list"= target=3D"_blank"><pre>https://www.redhat.com/mailman/listinfo/anaconda-de= vel-list</pre></a></blockquote></div> </blockquote></div> --00000000000015fb140596a93ab8-- --===============7504762390993726993== 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 --===============7504762390993726993==--