nov202216

Yann Gaillard

To build the "Live" version of superBoxon distribution, I begin by installing a custom version of the Slackware distribution. This version which I designate by the term "bare metal" is a minimalist version of the Slackware distribution to which I have added some extra packages I use.

Thereby, the installation takes place exactly as if you were installing a typical Slackware with the difference that I am using Grub2 as boot system instead of Lilo or Syslinux.

That's why you will need to perform an additional procedure before you can boot on the newly installed system and that's what I will explain in this article.

Install and configure Grub2 at the end of the installation of "bare metal" version:

When the installation have been completed and the following screen is displayed type Ctrl-C to interrupt the running script.

Move to the "scripts" folder of the installation ISO image:

cd /var/log/mount/scripts/

That folder contains 2 bash scripts that will allow installation, and also to configure Grub2 to be used as the main boot process.

So you have to begin by using the script "beforeChroot.sh" to install Grub2, nano text editor and prepare the environment to use the "chroot" command to configure the new system:

./beforeChroot.sh

After a few tens of seconds, when the execution of the script is finished, you can use the "chroot" command to log into the new system and finish configuring it.

chroot /mnt

Once connected in the new system, you have to mount the ISO image in order to use the second script:

mount /dev/sr0 /mnt

All that remains is to move back to the "scripts" folder of the ISO image:

cd /mnt/scripts/

Then use the second script contained in the folder:

./afterChroot.sh

After a few seconds, when the execution of the script ends, you can exit the "chroot" environment:

exit

That's it, the system is ready to be used, now you have to reboot so that the system will start on the newly installed system.

Classé dans: Tutorials