Skip to content

kraxel/imagefish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b5e07a9 · Jul 20, 2022
Jun 5, 2019
Nov 30, 2020
Jul 3, 2017
Jul 20, 2022
Nov 10, 2020
May 27, 2021
Jul 10, 2022
Jun 30, 2017
Jul 13, 2022
Jun 5, 2019
Jul 11, 2022
Jul 11, 2022
Nov 5, 2020
Nov 5, 2020
May 27, 2021
Nov 6, 2020
Jun 5, 2019
Jun 23, 2017
Nov 29, 2019
Dec 4, 2019
Nov 9, 2020
Jul 7, 2017
Oct 10, 2018
Nov 6, 2020
May 23, 2018
May 27, 2021

Repository files navigation

Imagefish

What is this?

It's a bunch of scripts to create bootable linux distro images. I'm using it for both arm toys (raspberry pi) and for qemu.

It's a two-step process. First the distro is installed to a directory, then the directory is tar'ed up. This needs root priviledges, the scripts use sudo for that. Second the actual image is created, using guestfish. That works without root priviledges.

Optional third step is to tweak the image configuration, again using guestfish.

How to use this?

The most interesting stuff is in the scripts/ directory.

  • install-redhat.sh can install Fedora, RHEL and CentOS into a directory (first step).
  • tar-to-image.sh creates the images (second step).
  • various config-*.sh scripts can configure images (third step).

The repos/ directory has yum/dnf config files for various distros. They will not work out of the box for you as they are tweaked for my home network. They use either the mirror or the caching proxy running on my local server box. When fiddeling with this take care to keep the mkimage- prefix for the repo names.

The short scripts in the root directory call the scripts in scripts/ with different parameters to create different images.