Goals, Objectives & Strategy

  • learning about archiso package
  • read all the information about archiso you can find
  • use archiso to build an iso yourself
  • analyse permissions, user and group names
  • no local repository on your pc but online

Preliminary

Read this article before watching the video.

https://wiki.archlinux.org/index.php/archiso

Follow the links in the page.

Course

We start by reading the vision here. We need to read the article about archiso on the Arch Wiki (see preliminary) and we will set up our github on https://github.com/arcolinuxiso/.

It is a must to know what files and folders you get when installing archiso.

We install archiso with this code

sudo pacman -S archiso

Now you can use pamac to see what is installed where and you can go read what is installed.

mkarchiso is the most important script/application that will be used lateron to build the iso.

There are two profiles baseline and releng. We will only use the releng profile in the future.

The wiki is talking about archlive our name will be carli.

We create a new github for carli. We will number them according to the phase we are in.

We will re-use the files from our githubs. Setting up githubs is explained here.

We copy/paste the releng profile inside the carli folder and post it online to github.

Read all the files from archiso and read the page on the arch wiki about mkinitcpio.

We talk about the files :

  • packages.x86_64 file is the content of what is going on the iso
  • mkinitcpio.conf – configuration file for your initial ramdisk
  • pacman.conf – what repositories will pacman use
  • airootfs – overlay for your future iso
  • customize_airootfs.sh – a script to change your future linux system
  • build.sh – open it and read it

 We can start building with

sudo ./build.sh -v

Use the -v to get more information while it is building. We will add it to the script lateron.

There will be two extra folders.

  1. work
  2. out

Now you can load this iso into virtualbox.

If there is a work directory, you can not run the builds script again.

We make a cleanup script to be able to build again.

We also create .gitignore file to make sure that the work folder and out folder will never go online.

We check the content of our iso by mounting it and check again on virtualbox.

Let us set the -v option by default in the .build.sh .

video course

More sources

Read here how ArcoLinux is using the archiso script to build any of the 64+ iso’s.

https://arcolinuxiso.com/how-does-arcolinux-use-the-archiso-script-and-its-own-scripts-to-build-all-the-isos/

Github repositories of Carli are here :

https://github.com/arcolinuxiso