Bug 910550 - dracut does not add <ipaddr>-kickstart boot option inst.ks= ends with slash
Summary: dracut does not add <ipaddr>-kickstart boot option inst.ks= ends with slash
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-12 20:20 UTC by Edgar Hoch
Modified: 2013-02-13 16:45 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-13 16:45:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch for usr/lib/dracut/hooks/initqueue/online/10-fetch-kickstart-net.sh in initrd.img of Fedora 18 (828 bytes, patch)
2013-02-12 20:20 UTC, Edgar Hoch
no flags Details | Diff

Description Edgar Hoch 2013-02-12 20:20:09 UTC
Created attachment 696614 [details]
Patch for usr/lib/dracut/hooks/initqueue/online/10-fetch-kickstart-net.sh in initrd.img of Fedora 18

Description of problem:
Fedora 18 does not add "<ipaddr>-kickstart" when the boot option inst.ks= ends with a slash.

Anaconda boot options tells:
http://wwoods.fedorapeople.org/doc/boot-options.html#_inst_ks

  if the filename given ends in /, <ip>-kickstart is added 

This has worked with Fedora 16 and (most) previous versions.


Version-Release number of selected component (if applicable):
Fedora 18 x86_64 network boot with option inst.ks= which ends with a slash

How reproducible:
Always.

Steps to Reproduce:
1. Boot with boot option like ks=nfs:fileserver:/path/to/kickstartfiles/
 
Actual results:
Fedora tries to copy the directory (with cp command) to /tmp/ks.cfg .
This creates an error that cp does ignore the directory /run/nfs_mnt0// .

Expected results:
Fedora should copy the file /run/nfs_mnt0/<ipaddr>-kickstart to /tmp/ks.cfg .

Additional info:

The file
  usr/lib/dracut/hooks/initqueue/online/10-fetch-kickstart-net.sh
in initrd.img of Fedora 18 adds "<ipaddr>-kickstart" only if the kickstart filepath is autogenerated ("nfs:auto"). I think this is wrong: "<ipaddr>-kickstart" should be added whenever the given or autogenerated kickstart path ends with a slash (as written in the wiki).

I have created a patch for that file in initrd.img.

Comment 1 Harald Hoyer 2013-02-13 10:59:56 UTC
10-fetch-kickstart-net.sh is part of anaconda.

Comment 2 Chris Lumens 2013-02-13 16:39:49 UTC
After a bit of discussion here, what we've determined is that your patch does restore the old behavior from previous versions of anaconda.  However, that behavior did not match the documentation which states the <ip-addr>-kickstart bit only gets used if your command line parameter is just "ks".

On the other hand, we don't really have any objections to taking your patch to restore old behavior and update the docs to match.  So that's what we are going to do.  Thanks for the patch.


Note You need to log in before you can comment on or make changes to this bug.