Bug 984932

Summary: missing dependency on python-ethtool
Product: [Fedora] Fedora Reporter: David Woodhouse <dwmw2>
Component: firstbootAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: bcl, extras-orphan, msivak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-14 10:40:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Woodhouse 2013-07-16 11:57:46 UTC
]# /usr/sbin/firstboot
Traceback (most recent call last):
  File "/usr/sbin/firstboot", line 31, in <module>
    import firstboot.loader
  File "/usr/lib/python2.7/site-packages/firstboot/loader.py", line 30, in <module>
    import ethtool
ImportError: No module named ethtool

Comment 1 David Woodhouse 2013-07-16 20:42:10 UTC
Oh, and system-config-keyboard:

Traceback (most recent call last):
  File "/usr/sbin/firstboot", line 30, in <module>
    import firstboot.frontend
  File "/usr/lib/python2.7/site-packages/firstboot/frontend.py", line 30, in <module>
    from system_config_keyboard import keyboard
ImportError: No module named system_config_keyboard

Comment 2 Fedora Admin XMLRPC Client 2013-10-14 09:17:54 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Vratislav Podzimek 2013-10-14 10:40:54 UTC
The firstboot utility is deprecated and no longer developed in Fedora 19 and newer releases. It was replaced by the initial-setup utility with a completely different codebase. If you still have any similar problems with Fedora 19 or later, please file a new bug against initial-setup or gnome-initial-setup if you did a GNOME install.

Comment 4 David Woodhouse 2013-10-14 12:31:03 UTC
But initial-setup has no documentation or examples for how to produce a module such as the firstboot module I'm using. 

So as far as I was concerned, it *wasn't* a viable replacement. I'd even gone to the trouble of porting my module's UI to gtk3, but ended up switching back again and using firstboot even for Fedora 19.

There's been *talk* about producing documentation and standalone examples for initial-setup, but none of that was available last time I looked. There is no example for how to do stuff and ensure that it appears and works correctly in initial-setup/gnome-initial-setup etc.

Comment 5 Vratislav Podzimek 2013-10-15 09:09:32 UTC
(In reply to David Woodhouse from comment #4)
> But initial-setup has no documentation or examples for how to produce a
> module such as the firstboot module I'm using. 
> 
> So as far as I was concerned, it *wasn't* a viable replacement. I'd even
> gone to the trouble of porting my module's UI to gtk3, but ended up
> switching back again and using firstboot even for Fedora 19.
> 
> There's been *talk* about producing documentation and standalone examples
> for initial-setup, but none of that was available last time I looked. There
> is no example for how to do stuff and ensure that it appears and works
> correctly in initial-setup/gnome-initial-setup etc.
As far as the initial-setup goes, there is a way to produce a module it can load and run -- write an anaconda addon. Because the initial-setup uses anaconda's UI code internally. Please have a look at the development guide I started writing a while ago (and unfortunately haven't had enough time to finish since then) [1] and a the hello world addon example refered from there. Also, you may find useful having a look at the addon I did as part of my masters thesis [2].

Creating an addon for the Initial Setup is just a matter of inheriting one special mixin class that lives in the anaconda's codebase. I'll be more than glad to help you with these things.

[1] http://vpodzime.fedorapeople.org/anaconda-addon-development-guide/
[2] https://fedorahosted.org/oscap-anaconda-addon/

May I suggest moving further communication about the addon development to emails or IRC? You can reach me at the #anaconda channel on FreeNode. I hope I'll find some time to finish the guide ASAP.