2

I'm using kickstart for the installation of a Fedora system. I separated some steps of the installation in some kickstart files, so they can be easily reused. For example, the section about partitioning is in one file, the packages to be installed in another one. The needed files are put together in the main ks file using %ksappend, because, unlike %include, it is parsed before %pre. This is needed because the appended files can contain %pre sections themselves.

When installing over the network, everything goes well since the append path is an "absolute" url (e.g. %ksappend http://192.168.0.39/partitioning_lvm.ks). I was wondering what path should I use if the kickstart installation tree is placed on a usb device.

I guess, if using %include, I could mount the device in %pre in a known location before including the files (in /tmp for example). In this case, however is not possible because %ksappend, as said before, is parsed before %pre.

Any ideas?

Egidio Docile
  • 331
  • 2
  • 4
  • 8

1 Answers1

0

For anyone still wondering, this is the path you're looking for (for a file at the root of the ISO) :

%ksappend /run/install/repo/somefile.cfg

Your installation source is mounted by the installer at /run/install/repo, and is declared in your linuxefi invocation

menuentry 'Install my OS' --class os {
    linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=MY_ISO inst.repo=hd:LABEL=MY_ISO:/ inst.ks=hd:LABEL=MY_ISO:/kickstart_main.cfg quiet
    initrdefi /images/pxeboot/initrd.img
}

In that instance, both somefile.cfg and kickstart_main.cfg are at the root of the ISO.

Aseed
  • 101