yes! It works right now. :) Thanks.
And what's the difference between these two branch?
jkonecny@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 ? :(
jkonecny@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-r...
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
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/
The differences are mostly thanks to that. Jirka
jkonecny@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__.pypyanaconda/ui/categories/syst em.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 ? :( jkonecny@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-r... 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/) , 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 listAnaconda-devel-list@redhat.com https://www.redhat.com/mailman/listinfo/anaconda-devel-list
On Wed, 2019-11-06 at 10:24 +0100, jkonecny@redhat.com 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_still... or in YT if you don't like LBRY: https://youtu.be/00W8SsRrU8g?t=458 id="-x-evo-selection-start-marker"> Jirka
The differences are mostly thanks to that.
Jirka
jkonecny@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__.pypyanaconda/ui/categories/sy stem.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"sortOrd er = 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 ? :( jkonecny@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-r... 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/) , 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 listAnaconda-devel-list@redhat.com https://www.redhat.com/mailman/listinfo/anaconda-devel-list
Thanks!
jkonecny@redhat.com于2019年11月6日 周三17:42写道:
On Wed, 2019-11-06 at 10:24 +0100, jkonecny@redhat.com 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_still...
or in YT if you don't like LBRY:
https://youtu.be/00W8SsRrU8g?t=458
Jirka
The differences are mostly thanks to that.
Jirka
jkonecny@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 ? :(
jkonecny@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-r...
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
anaconda-devel@lists.fedoraproject.org