Re: Install Artix without ISO?
Reply #6 –
You could just say the script is a command. Commands are no different really, but often written in another language:
https://github.com/coreutils/coreutils/blob/master/src/ls.c
Understanding a script like that will take more than 50 minutes, you could spend that time studying a single function or line if it was complicated. The script is much shorter and simpler than the commands, should you use them or write your own? The example of ls is written in C, which is compiled to assembly code by GCC, this gets converted to digital binary commands, how low level do you want to go?
That aside, basically what you need is to get a working Pacman somehow then install the list of files to the target fs proceeding pretty much like described on the base install page on the Artix wiki. Besides the basestrap script there are statically built pacman's and many popular distros have packages with pacman in, you might need to search online as they might not be in the std repos. The packages are just compressed archives which you can unpack manually too and put in place yourself, but there might be complications getting them registered with Pacman as being installed packages, I don't know offhand exactly how the database management is done.
To chroot from another distro is quite simple once you have the required stuff installed:
$ sudo mount /dev/**? mntpnt/
$ for d in dev sys run proc; do sudo mount --bind /$d ~/mntpnt/$d; done
$ sudo chroot ~/mntpnt
# bash
...do stuff...
# exit
# exit
$ for d in dev sys run proc; do sudo umount -r ~/mntpnt/$d; done
Perhaps that adds some other possibilities anyway, I'm sure it will be undoubtedly educational trying to this!