Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have been looking to setup a USB disk (stick) for uniformly configuring our servers. (and when I say "we" I mean my colleague figured it out with my occasional help)

We would like to explicitly list the RPMs we want.

So far:

  • We managed to make the stick bootable
  • We managed to configure grub to point at the kickstart file
  • We placed a ISO (of the distro or one we created) containing the RPMs on the stick

I would like to avoid the step of creating this ISO image and just drop RPMs into a directory on the USB stick

I remember working with kickstart many years ago (probably with floppy) and am pretty sure that this was possible.

Thanks

EDIT Maybe our problem is elsewhere ... we are getting the following screen, where it is specifically looking for an ISO image (re my original question - wanting to kickstart without an ISO image)

I have an image of the screen-shot at http://i.stack.imgur.com/uW4pu.png (ServerFault wont let me insert it inline because I am a newbie)

share|improve this question

2 Answers 2

up vote 1 down vote accepted

The kickstart can install packages from any configured repository. Simply mount the USB key at a known location before the actual install and point the repo information to the appropriate directory (and don't forget to use createrepo).

share|improve this answer
    
@Ignacio I imagine that the system being bootstrapped has no OS present to mount on. –  JeffG Mar 22 '11 at 20:06
    
@JeffG: The installer has an OS. –  Ignacio Vazquez-Abrams Mar 22 '11 at 20:08
    
We are specifying the path to the kickstart file in terms of an absolute device path ... something in the spirit of ks=hd:sda1:/ks.cfg ... how would I mount (from %pre rule in kickstart?) –  nhed Mar 22 '11 at 20:11
    
@nhed: Yes, that would be the appropriate place. –  Ignacio Vazquez-Abrams Mar 22 '11 at 20:13
    
@Ignacio, thanks - but I am still unclear about 2 things: (1) why should I mount if it is mounted already (ks file: install => --partiton & --dir) (2) the what the directory tree should look like in said directory ... If you have dome this before can you paste an example? Thanks –  nhed Mar 23 '11 at 2:00

You may have better luck burning the ISO onto a DVD.

  1. loopback mount your DVD ISO image
  2. copy your kickstart file to the root of the image
  3. edit isolinux/isolinux.cfg and append ks=FILENAME.ks to the kernel line
  4. unmount the ISO image and burn the disk.
share|improve this answer
    
but I want it on a USB stick ... I'll edit my question for uniformity –  nhed Mar 22 '11 at 22:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.