Product SiteDocumentation Site

8.6. Copying Arbitrary Files Onto the Media

With --copy-dir, you can specify a path Revisor should copy onto the media.
Installation Media
In the case of installation media, the path specified with --copy-dir will be copied recursively to the files/ sub-directory at the root of the ISO image (or the first ISO image if you compose split media).
A few use-case examples:
  • If one kickstart profile is not enough for you to deploy the product onto your systems, create a directory that holds multiple kickstart files and specify the path to that directory using --copy-dir. The kickstart files now end up available to the installation procedures as cdrom:/files/*.ks, and can thus be used by specifying them on the kernel cmdline (ks=cdrom:/files/profile1.ks), or, when used in combination with --isolinux-cfg from the Isolinux Plugin, can be added as an option in the isolinux menu.
  • If you have files or scripts that need to be copied onto, or run on, the installed system before it attempts to reboot and operate normally, you can use --copy-dir to make these files and scripts available during the installation and copy or execute them from either %pre or %post scripts.
Live Media
In the case of live media, the path specified with --copy-dir will be copied recursively onto the root directory (/) of the live media filesystem (which is probably loop-mounted onto /var/tmp/revisor/).
If, for example, you want to copy a home directory onto the live media, and the home directory you want to copy is at /home/user1/ on the composing system, you copy this directory so that the root of that new directory has a sub-directory home/ which in turn contains a sub-directory user1/:
$ mkdir -p /tmp/something/home/
$ cp -a /home/user1 /tmp/something/home/.
$ revisor [options] --copy-dir /tmp/something/