Re: Helloworld Anaconda add-on
edsionte <[email protected]> Wed, 6 Nov 2019 17:08:08 +0800
| Newsgroups | gmane.linux.redhat.anaconda.devel |
|---|---|
| Message-ID | <CAGa4GEqSwS6Hce-HDxMQA5jK-40aJ+9kU57zpEgjLx6YikTgcA@mail.gmail.com> |
--===============3830574351096320948== Content-Type: multipart/alternative; boundary="000000000000cd57e60596a9e301" --000000000000cd57e60596a9e301 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable yes! It works right now. :) Thanks. And what's the difference between these two branch? <[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 > > --000000000000cd57e60596a9e301 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">yes! It works right now.=C2=A0 :)<div>Thanks.</div><div><b= r></div><div>And what's the difference between these two branch?=C2=A0<= /div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_a= ttr"><<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=884:36=E5=86=99=E9=81=93=EF=BC=9A<br></div><blockquote class=3D"gmail_q= uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2= 04);padding-left:1ex"><div style=3D"text-align:left;direction:ltr"><div>Ohh= , I'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 Fe= dora Rawhide. For CentOS-7 you have to use rhel7-branch</div><div><br></div= ><div><a href=3D"https://github.com/rhinstaller/hello-world-anaconda-addon/= tree/rhel7-branch" target=3D"_blank">https://github.com/rhinstaller/hello-w= orld-anaconda-addon/tree/rhel7-branch</a></div><div><br></div><div>Try to u= se 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><blockquote type=3D"cite" style= =3D"margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding= -left:1ex"><div dir=3D"ltr">Thanks your reply,<div><br></div><div>=E2=80=9C= inst.updates=3Dhd:/sdb4:/images/updates.img =E2=80=9D=C2=A0 was my=C2=A0wri= ting error=EF=BC=8Csorry for that.</div><div><br></div><div>Actually, I use= d "inst.updates=3Dhd:sdb4:/images/updates.img" as you said above,= and the menu hasn't new category.</div><div>I=C2=A0 have read :</div><= div><br></div><div>pyanaconda/ui/categories/__init__.py</div><div>pyanacond= a/ui/categories/system.py=C2=A0=C2=A0<br></div><div><br></div><div>After co= mparing 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 f= ollowing=C2=A0 lines=EF=BC=9A</div><div><br></div><div><b>displayOnHubGUI= =3D"SummaryHub"</b></div><div><b>displayOnHubTUI=3D"SummaryH= ub"</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><div>Th= e comment in the code says that if this value is none, then this category w= ill not be displayed.<b><br></b></div><div><br></div><div>SO I add these li= nes 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]" target=3D"_blank">[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 type=3D"cite" st= yle=3D"margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padd= ing-left:1ex"><div 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>inst.updates=3Dhd:sdb4:/images/updates.img</div><div><br></d= iv><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/latest/boot-options.html#inst-repo</a></div><div><br></div><div>It'= s using the same syntax as inst.updates.</div><div><br></div><div>Best Rega= rds,</div><div>Jirka</div><div><br></div><div>On Wed, 2019-11-06 at 13:25 += 0800, edsionte wrote:</div><blockquote type=3D"cite" style=3D"margin:0px 0p= x 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div d= ir=3D"ltr">Hi all,<div><br></div><div>I want to test my first =E2=80=9Chell= o 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/hell= o-world-anaconda-addon/blob/master/Makefile" target=3D"_blank">https://gith= ub.com/rhinstaller/hello-world-anaconda-addon/</a>) =EF=BC=8C and make a ou= tfile updates.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=9C= images/=E2=80=9D=C2=A0 of boot disk.</div><div><br></div><div>Then I used i= nst.updates=3Dhd:/sdb4:/images/updates.img boot option, There isn't a n= ew helloworld Category on the installation menu.</div><div><br></div><div><= span style=3D"color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemF= ont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji= ","Segoe UI Emoji";font-size:14px">Is there anything wrong w= ith steps above=EF=BC=9F</span>=C2=A0=C2=A0<br></div><div><br></div><div>Th= anks.</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><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> --000000000000cd57e60596a9e301-- --===============3830574351096320948== 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 --===============3830574351096320948==--