yes! It works right now. :) Thanks. And what's the difference between these two branch?
<jkone...@redhat.com> 于2019年11月6日周三 下午4:36写道: > 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-branch > > 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, > > “inst.updates=hd:/sdb4:/images/updates.img ” was my writing error,sorry > for that. > > Actually, I used "inst.updates=hd: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 > “hello-world-anaconda-addon/org_fedora_hello_world/categories/hello_world.py” > are missing the following lines: > > *displayOnHubGUI="SummaryHub"* > *displayOnHubTUI="SummaryHub"* > *sortOrder = 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 > “hello-world-anaconda-addon/org_fedora_hello_world/categories/hello_world.py”. > > 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: > > */usr/lib64/python2.7/sit-packages/pyanaconda/ui/gui/hubs/__init__.py, > line 132, in _createBox()* > * spoke=spokeClass(self.data, self.storage, self.payload, self.instclass)* > > *……………………* > *TypeError: __init__() takes exactly 4 arguments (5 given)* > > Now, what should I do next ? > :( > > <jkone...@redhat.com> 于2019年11月6日周三 下午3:48写道: > > Hello, > > You should use: > > inst.updates=hd:/dev/sdb4:/images/updates.img > > or > > inst.updates=hd:sdb4:/images/updates.img > > > For more info please see: > > > https://anaconda-installer.readthedocs.io/en/latest/boot-options.html#inst-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 “hello word” Anaconda addon program. > > Firstly, I use this source code ( > https://github.com/rhinstaller/hello-world-anaconda-addon/ > <https://github.com/rhinstaller/hello-world-anaconda-addon/blob/master/Makefile>) > , and make a outfile updates.img. > Then, I made a USB boot disk (CentOS 7.4), and placed updates.img into the > directory “images/” of boot disk. > > Then I used inst.updates=hd:/sdb4:/images/updates.img boot option, There > isn't a new helloworld Category on the installation menu. > > Is there anything wrong with steps above? > > Thanks. > edison > > _______________________________________________ > > Anaconda-devel-list mailing list > > Anaconda-devel-list@redhat.com > > > https://www.redhat.com/mailman/listinfo/anaconda-devel-list > >
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@redhat.com https://www.redhat.com/mailman/listinfo/anaconda-devel-list