1
0
Fork 0
script that makes a void-musl installation semi-automated.
Go to file
d13g0 8fe8fbe9b5 Actualizacion 2024-02-13 16:42:54 -05:00
README.org remove readme.md and add readme.org 2024-01-01 16:32:19 -06:00
custom.sh some changes 2023-06-16 04:10:04 -05:00
install.sh Actualizacion 2024-02-13 16:42:54 -05:00
postinstall.sh Modificando script 2024-02-11 08:22:36 -05:00
progs.csv change url from repos 2023-05-13 04:53:35 -05:00

README.org

VoidStrap installer.

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

Usage:

Running install.sh

Download the iso, and once in root inside the live, git clone this repo: (You need to update inside the iso and install git)

NOTE: there are 3 branches:

main
This will install void-musl.
glibc
This will install void-glibc.
dual

This will install void-glibc dual boot with Windows.

  • This branch is tested only with Windows, I never try it with other distributions.
  • If you want musl you can change the link to the mirror in the install.sh script:
- Change this in line 11:
export XBPS_ARCH=x86_64 && xbps-install -Suy -R http://mirrors.servercentral.com/voidlinux/current -r /mnt \
- For this:
export XBPS_ARCH=x86_64-musl && xbps-install -Suy -R http://mirrors.servercentral.com/voidlinux/current/musl -r /mnt \
git clone https://git.disroot.org/jpacheco/voidstrap
cd voidstrap
sh install.sh

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

- /dev/sdX1 -> as the boot partition.
- /dev/sdY2 -> as the swap partition.
- /dev/sdZ3 -> as the root partition.

NOTE: Replace X,Y & Z for your partition name. I consider to have this structure of partition, but you can change it, but you must change the code in postinstall.sh when the scripts make the fstab archive.

Make sure you do a backup of your files before doing crazy things and trust anyone script

When the install.sh script finish, you need to run the postinstall script located in /root folder:

Running postinstall.sh

This script its going to create some configuration files, like: fstab, rc.conf, change the password of root, and add user(s).

xchroot /mnt

Then run the chroot.sh script.

sh /root/postinstall.sh

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

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

The custom.sh script

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

sh /root/custom.sh

But you can specify your dotfiles repositories and others that you require whit some parameters:

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