Fri Feb 21 13:28:53 2020 UTC

Produce a customised ISO

[NOTE IMPORTANT] All the commands should be entered as root

Installation of a NuTyX system

The "LFS" variable MUST be defined

In this demonstration the chroot will be in the "/ISO-NuTyX" directory, but you may choose a different name.

export LFS=/ISO-NuTyX

The "NUTYX_TMP" variable SHOULD be defined

It is a directory where you want to clone a temporary NuTyX repository. Here it is "/mnt/nutyx_tmp" but you may choose a different directory.

export NUTYX_TMP=/mnt/nutyx_tmp

Make sure you have all the tools installed

If you are running a NuTyX system you can use:

cards install git cdrtools syslinux libisoburn grub-efi dosfstools

Clone the "NuTyX" git repository

Change to the directory where you want to download a temporary NuTyX repository: e.g. `cd /mnt`

git clone $NUTYX_TMP

Install the NuTyX base system


Copy necessary files for the iso

cp -av $NUTYX_TMP/iso $LFS/ISO

Generate the ISO

Enter the chroot

install-nutyx -ec

Put the kernel and the initrd in the right place

mkinitramfs $(basename /lib/modules/*) -nf

Suggested Option, install the EFI's installation packages

get efibootmgr dosfstools

Suggested Option, install wifi and mouse support

get wireless-tools wpa-supplicant gpm gpm.service


There is no need to install your own locale, the command:

cards upgrade
will automatically install all the package locales defined during post-configuration.

Suggested Option, install all of the extra packages you want

get ...

Flush the binary archives

cards purge

Generate the squashfs files

for dir in opt bin etc lib lib64 root run sbin usr var home
  [ -f /ISO/boot/$dir.squashfs ] && rm /ISO/boot/$dir.squashfs
  mksquashfs /$dir /ISO/boot/$dir.squashfs

Quit the NuTyX chroot


Generate the ISO

bash $NUTYX_TMP/scripts/mkiso


The size should not be greater than 300 MB if you didn't add any optional packages. You will find the iso image in the $LFS directory.

ls $LFS
bin etc lib NuTyX_x86_64-20160917.iso root srv usr boot 
home lib64 NuTyX_x86_64-20160917.md5sum
run sys var dev ISO mnt proc sbin tmp

Create a bootable USB-Stick

Insert your USB-Stick and check the disk. Run:

fdisk -l
Disk /dev/sdb: 960.8 MiB ......

Create a bootable USB-Stick specifying the correct filename and disk (replace sdX with your USB disk)

[Important] Following command will remove all existing data on the USB key.
dd if=$LFS/NuTyX_x86_64-20160917.iso of=/dev/sdX bs=4M