picodotdev / alis

Arch Linux Install Script (or alis, also known as the Arch Linux executable installation guide and wiki) installs an unattended, automated and customized Arch Linux system.
https://picodotdev.github.io/alis/
GNU General Public License v3.0
823 stars 319 forks source link

Support for branch name change from `master` to `main` #255

Closed tkna91 closed 1 month ago

tkna91 commented 2 months ago

It seems necessary to deal with the change of branch name from master to main. For example, the following process will result in an error because the string master in the path is not main. https://github.com/picodotdev/alis/blob/main/download.sh#L39

This at least appears to prevent download.sh from functioning as expected.

A simple search of the repositories with ag yielded the following results. I am not sure of the details of how to respond, so please consider addressing this issue.

$ ag master
README.md
3:![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-badge.svg)
4:![Bash](https://raw.githubusercontent.com/picodotdev/alis/master/images/sh-bash-badge.svg)
30:[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux.svg "Arch Linux")](https://www.archlinux.org/)
112:# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts
123:# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts
125:# # curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash -s -- -h [HASH_COMMIT] # Use specific version of the script based on the commit hash
140:# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts
155:# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts
191:[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-gnome-thumb.jpg "Arch Linux with GNOME")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-gnome.jpg)
192:[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-kde-thumb.jpg "Arch Linux with KDE")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-kde.jpg)
193:[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-xfce-thumb.jpg "Arch Linux with XFCE")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-xfce.jpg)
194:[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-cinnamon-thumb.jpg "Arch Linux with Cinnamon")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-cinnamon.jpg)
195:[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-mate-thumb.jpg "Arch Linux with Mate")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-mate.jpg)
196:[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-lxde-thumb.jpg "Arch Linux with LXDE")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-lxde.jpg)
197:[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-root-password-thumb.png "Arch Linux unloking LUKS on boot")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-root-password.png)
271:* https://gitlab.archlinux.org/archlinux/archiso/-/blob/master/configs/releng/packages.x86_64

alis-recovery.sh
45:# # curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash

alis.sh
47:# # curl https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash

site/content/_index.markdown
88:            <a href="https://github.com/picodotdev/alis/blob/master/alis.conf" class="card-link">Configuration file</a>

site/content/install.sh
4:# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts

site/content/pages/installation/index.markdown
104:curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts
115:curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts
153:curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts
177:curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts

site/content/pages/user-guide/code/download-conf.sh
3:# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash -s -u picodotdev

site/content/pages/user-guide/code/download.sh
3:# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash

site/content/pages/user-guide/code/install.sh
5:# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash     # Download alis scripts

site/content/pages/user-guide/code/ls-alis.sh
13:drwxr-xr-x 8 picodotdev picodotdev    4096 mar 20 11:04 alis-master
14:-rw-r--r-- 1 picodotdev picodotdev 1354656 mar 20 11:40 alis-master.zip

alis-packages.conf
8:# https://github.com/picodotdev/alis/blob/master/README.md

alis-packages.sh
44:# # curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash

alis-cloud-init-ssh.sh
7:BRANCH="master"

alis-packer.sh
9:BRANCH="master"

alis-recovery.conf
8:# https://github.com/picodotdev/alis/blob/master/README.md

site/content/pages/user-guide/index.markdown
280:* [alis-cloud-init-iso.sh](https://github.com/picodotdev/alis/blob/master/alis-cloud-init-iso.sh) which creates a private and public key pair for the SSH connection and creates a disk image that includes the public key and other instructions for virtual machine initialization provided with cloud-init. The iso image has to be mounted on the virtual machine.
281:* [alis-kvm-virt-install.sh](https://github.com/picodotdev/alis/blob/master/alis-kvm-virt-install.sh) contains the command to create a virtual machine with KVM on GNU/Linux and the definition of the characteristics of the virtual machine in terms of memory size, virtual CPUs, system BIOS, and storage space as well as network connection. The virtual machine mounts the iso image created in the previous command.
282:* [alis-cloud-init-ssh.sh](https://github.com/picodotdev/alis/blob/master/alis-cloud-init-ssh.sh) once the virtual machine is started and knowing the IP address assigned to it, this command makes the SSH connection using the private key SSH to perform authentication. And perform the alis script download. In addition, the command with an option allows you to start the installation by applying the changes with the desired configuration to the configuration file and start the installation.

alis.conf
9:# https://github.com/picodotdev/alis/blob/master/README.md

site/install.sh
2:git clone -b master git@github.com:picodotdev/alis.git
$