1
0
Fork 0
script that makes a void-musl installation semi-automated.
Go to file
Tuxliban Torvalds 25f8d388df Adds chroot execution in the installation script
This commit makes an improvement to the Void Linux installation script. Chroot execution has been added to facilitate system configuration within the chroot environment. Now, after completing the main system installation, the chroot to the root directory (/mnt) is performed and an additional script is run to configure the system and users. This enhancement simplifies the installation process and provides a more automated way to perform the required configuration. In addition, minor fixes and enhancements have been made to existing scripts.
2023-05-27 11:04:03 +00:00
README.md update readme file 2023-05-13 10:59:28 -05:00
chroot.sh update services 2023-05-15 18:18:14 -05:00
config.sh Adds chroot execution in the installation script 2023-05-27 11:04:03 +00:00
postinstall.sh change url from repos 2023-05-13 04:53:35 -05:00
progs.csv change url from repos 2023-05-13 04:53:35 -05:00

README.md

VoidStrap installer.

A basic minimalist installer of void-musl with some packages to get ready to enjoy this amazing GNU/Linux distro.

Usage:

Download the iso, and once in root inside the live, git clone this repo:

git clone https://git.disroot.org/jpacheco/voidstrap --depth 1
cd voidstrap
sh config.sh

Once there the script will open cfdisk, and you need to format the HDD in this specific format:

1.- /dev/sdX1 -> as the boot partition.

2.- /dev/sdX2 -> as the swap partition.

3.- /dev/sdX3 -> as the root partition.

NOTE: this needs to be in this way, if not the script will not work. Make sure you do a backup of your files before doing crazy things and trust anyone script

When the config.sh script finish, you need to copy this files into the /mnt/tmp folder:

  1. chroot.sh. 2.- postinstall.sh
cp chroot.sh postinstall.sh /mnt/tmp

Now here you need to execute xchroot to run chroot.sh script that its going to create some configuration files, like: fstab, rc.conf, change the password of root, and add 1 user, and some others.

xchroot /mnt

Then run the chroot.sh script.

sh /tmp/chroot.sh

When it finish you need to run the postinstall.sh scipt, that is going to install the X server and some other "necesary" packages.

This is going to install my personal dotfiles, and a specific packages that I use:

sh /tmp/postinstall.sh

But you can specify your dotfiles repos and other repos that you require whit some parameters:

sh postinstall.sh -r https://codeberg.org/jpacheco/dotfiles # specify a repo url.
sh postinstall.sh -p otherprogfile.csv # especify a custom package archive to install.
sh postinstall.sh -b dev # especify the name of a custom branch in case of needed.

When the postinsall.sh script finishes, you only need to reboot and enjoy your Void-Musl Distro.