Skip to content

script to build livecd iso for venom linux

License

Notifications You must be signed in to change notification settings

smersh2/venomiso

 
 

Repository files navigation

Venom Linux iso/rootfs creator

This repository contain utilities for Venom Linux:

  • mkiso (create venom's iso)
  • mkrootfs (create venom's updated image tarball)

Dependencies

Host:

  • squashfs-tools (to create venom squasfs filesystem for the iso)
  • libisoburn (use xorriso to create iso)

Venom rootfs (incase you modified it):

  • mkinitramfs (to create initrd)
  • scratchpkg (to install/upgrade package before create the iso)
  • rc (init system used by Venom Linux)
  • squashfs-tools (to unsquash venom filesystem to disk while installing)
  • dialog (required by the installer)

Note: squashfs-tools and dialog will get installed by default before the iso is created, it needed for the installer.

mkiso

By default, mkiso script will download venom rootfs base image from here to create the iso if not found in the current directory (venom-rootfs.txz) but you can use custom venom image tarball or venom filesystem directory (in case you need customize it first). Eg: # ./mkiso mycustomvenom.txz or # ./mkiso /path/to/venomfs.

Usage:
  mkiso [options] <venom source>

Options:
  -p <path>           set packages cache directory
  -s <path>           set sources cache directory
  -P <pkg1 pkgN ...>  package to install into iso
  -i <initrd>         use custom initrd
  -k <kernel>         use custom kernel
  -o <name.iso>       output name for iso
  -c <file.preset>    use preset file
  -h                  show this help msg

Example

Create base venom iso with custom output name

# ./mkiso -o venomlinux.iso

Create venom iso with some extra package

# ./mkiso -P nano mc xorg

Create venom iso using your own created initrd/kernel (make sure you know what you doing)

# ./mkiso -i /path/to/initrd -k /path/to/kernel

Create venom iso using preset file

# ./mkiso -c file.preset

Create venom iso using existing venom rootfs

# ./mkiso custom-venom-rootfs.txz

Create venom iso using custom packages path (its save you compile time, if you already use Venom Linux as host OS :D)

# ./mkiso -p /path/to/packagedir

You can use these options altogether example: