How to add packages onto a Fedora live USB

5,576

Solution 1

I note my application is slightly difference in that I am creating installation media and not a livecd, but some of this is likely to apply.

You will need to use the tool createrepo to alter the repodata on the CD. To have them preinstalled you will probably need a kickstart file - ks.cfg, and you will need the isolinux.cfg file to pass ks=...ks.cfg location to the kernel on boot (in an append line).

References:

Make sure you have a VM to try out your ISO's on, before turning it loose on real machines - it'll take a few attempts to get right. With the kickstart file you can set usernames, passwords, packages as well as have post installation scripts in bash or python.

Solution 2

As others have suggested, you need to build your custom Fedora ISO using kickstart preloaded with your rpm packages of choice. Adding packages is as simple as appending them to your kickstart file. After that open the stock Fedora ISO using ISO master, replace the kickstart file and save the new ISO as a different file. The final step is to install the new ISO onto your USB the way you normally do.

Share:
5,576
Kumar
Author by

Kumar

Working as System Administrator at Coimbatore based Company

Updated on September 18, 2022

Comments

  • Kumar
    Kumar over 1 year

    I want to create Fedora 14 live CD with additional packages. How to do it?

    • Admin
      Admin almost 13 years
      I am currently building an FC13 based CD with a kickstart CD for auto installing - and trying to find out how to pull packages in. It seems merely having the RPM in the Packages folder on the media is not enough. Once I am there, I'll give you what I get.
    • Admin
      Admin almost 13 years
      @ Danny Staple, Thanks, waiting for your answer
  • erik
    erik over 9 years
    The changes only retain, if you add persistant storage when creating your live usb stick with liveusb-creator.
  • Admin
    Admin almost 6 years
    "Then boot it up, and modify it however you like..." - You should probably add some more detail. I am experiencing a failure due to lack of space on the root filesystem after running sudo yum install <package>. The thumbdrive with the ISO has over 12 GB free so I doubt I am out of space.