10 small fixes for dracut changes

Will Woods wwoods at redhat.com
Fri Aug 17 22:30:37 UTC 2012


This patchset cleans up a bunch of stuff relating to dracut changes since
Fedora 17. A summary:

  #1 and #3 are mostly just refactoring.

  #4 and #7 drop code that got moved upstream.

  #2 is a temporary fix for BOOTIF+ip (PXE crashes). I'm trying to
     engage with upstream to get this fixed properly.

  #5 fixes set_neednet, since 'rd.neednet' was dropped upstream.
     This should fix problems like "the kickstart never gets fetched".

  #6 should fix a bunch of 'command not found' problems where we need to
     import anaconda-lib.sh again. These all stem from the change to systemd
     upstream, which means that hooks all run in separate shells.

  #7 (as mentioned above) removes code, but it also happens to fix old-style
     static network configuration (ip=<ip> gw=<gw> nm=<nm> etc.). Yay!

  #8 fixes missing '$netif' in anaconda-netroot and fetch-kickstart-net.
     Upstream started passing it as '$1' rather than in the environment.

  #9 just drops a now-unneeded hack for upgrades. Easy.

  #10 should fix some problems with 'ksdevice', since it turns out you can't
      use 'eth0' as your device name.


At some point (post-Alpha) we should probable examine the device naming thing
more closely and see if there's some way to let users actually specify "I want
to use the device with the MAC <XXX>" without renaming the device itself.

Anyway, here's the diffstat:

 dracut/anaconda-diskroot      |  8 +-------
 dracut/anaconda-lib.sh        | 25 +++--------------------
 dracut/anaconda-modprobe.sh   |  6 +++++-
 dracut/anaconda-netroot.sh    |  3 +++
 dracut/fetch-kickstart-net.sh |  3 +++
 dracut/module-setup.sh        |  2 +-
 dracut/parse-anaconda-net.sh  | 18 ++---------------
 dracut/parse-kickstart        | 47 +++++++++++++++++++++++++++++++------------
 dracut/repo-genrules.sh       |  4 ++--
 9 files changed, 54 insertions(+), 62 deletions(-)

Enjoy,

-w



More information about the anaconda-patches mailing list