I'm unable to find packages to install from an USB drive with "harddrive" or "url --> file:///" Kickstart options

Hello.

I want to use an USB pendrive to do unattended installations of Fedora 24 Server. I append the inst.ks=hd:LABEL=myUsbLable:/ks.cfg parameter to boot menu (but no inst.stage2 nor inst.repo) and it's ok because Anaconda starts well and find the ks file. My problem is with "install" option.

If I do...: install harddrive --partition=sdb1 –dir=/ ...Anaconda GUI starts ok but shows "source is invalid" (although it specified partition is correctly selected). I think it's because Anaconda expect an iso file but what I have is the expanded tree.

If I do...: install url –url=file:///run/install/repo (or url --url=file:///run/install/isodir) ...a dracut error appears saying that "inst.repo" is not a valid location.

I don't think I'm trying to do something strange...this use case must be very common, isn't??. What's the problem?? Is it a bug??

Thanks

edit retag close merge delete

Sort by » oldest newest most voted

I found some instructions for RHEL that may help you. It appears to say that what you need to do is find the UUID of your flash drive by using sudo blkid and adding ks=file://UUID/directory/ks.cfg to the command line at boot. Don't try to use something like /dev/sdc1 because that can change from machine to machine, and don't use the device's label because the documentation implies that it won't work.

more

Thanks, but that is not the problem. The ks.cfg file is found perfectly: the problem is ks.cfg file's options can't find source from get packages to install (which is, as I've said, the same USB pendrive where installer boots from)

( 2016-11-01 05:20:52 -0500 )edit

Do you give a fully qualified path name to the files? If so, how do you qualify it? (At this point, I'm guessing, but you may need to use the full path for each file.)

( 2016-11-01 12:58:24 -0500 )edit