bump
This commit is contained in:
parent
91b45ef3d8
commit
80d59cc907
1 changed files with 70 additions and 73 deletions
143
arch_install
143
arch_install
|
@ -73,6 +73,9 @@ USER_PASSWORD=''
|
||||||
# System timezone.
|
# System timezone.
|
||||||
TIMEZONE='America/Sao_Paulo'
|
TIMEZONE='America/Sao_Paulo'
|
||||||
|
|
||||||
|
# Country code for pacman repos
|
||||||
|
COUNTRY='BR'
|
||||||
|
|
||||||
# Have /tmp on a tmpfs or not. Leave blank to disable.
|
# Have /tmp on a tmpfs or not. Leave blank to disable.
|
||||||
# Only leave this blank on systems with very little RAM.
|
# Only leave this blank on systems with very little RAM.
|
||||||
TMP_ON_TMPFS='TRUE'
|
TMP_ON_TMPFS='TRUE'
|
||||||
|
@ -98,7 +101,7 @@ FULL_INSTALL=false
|
||||||
# PACKAGES{{{
|
# PACKAGES{{{
|
||||||
set_pkgs() {
|
set_pkgs() {
|
||||||
# sudo to allow to run as a user later
|
# sudo to allow to run as a user later
|
||||||
sudo pacman -Sy &> /dev/null
|
sudo pacman -Sy
|
||||||
|
|
||||||
pkgs_base+=' base linux-zen linux-firmware intel-ucode lvm2 '
|
pkgs_base+=' base linux-zen linux-firmware intel-ucode lvm2 '
|
||||||
pkgs_base+=' zsh networkmanager bluez cronie git man-db'
|
pkgs_base+=' zsh networkmanager bluez cronie git man-db'
|
||||||
|
@ -209,6 +212,9 @@ setup() {
|
||||||
echo 'Mounting filesystems'
|
echo 'Mounting filesystems'
|
||||||
mount_filesystems "$boot_dev"
|
mount_filesystems "$boot_dev"
|
||||||
|
|
||||||
|
echo 'Setting repos'
|
||||||
|
set_repos
|
||||||
|
|
||||||
echo 'Installing base system'
|
echo 'Installing base system'
|
||||||
install_base
|
install_base
|
||||||
|
|
||||||
|
@ -338,6 +344,69 @@ mount_filesystems() {
|
||||||
swapon /dev/vg00/swap
|
swapon /dev/vg00/swap
|
||||||
}
|
}
|
||||||
#}}}
|
#}}}
|
||||||
|
# set_repos() {{{{
|
||||||
|
set_repos() {
|
||||||
|
# /etc/pacman.conf{{{
|
||||||
|
cat > /etc/pacman.conf <<EOF
|
||||||
|
#
|
||||||
|
# GENERAL OPTIONS
|
||||||
|
#
|
||||||
|
[options]
|
||||||
|
HoldPkg = pacman glibc
|
||||||
|
Architecture = auto
|
||||||
|
|
||||||
|
# Misc options
|
||||||
|
#UseSyslog
|
||||||
|
Color
|
||||||
|
ILoveCandy
|
||||||
|
#TotalDownload
|
||||||
|
CheckSpace
|
||||||
|
#VerbosePkgLists
|
||||||
|
|
||||||
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
|
#
|
||||||
|
# REPOSITORIES
|
||||||
|
#
|
||||||
|
|
||||||
|
#[testing]
|
||||||
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[core]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[extra]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
#[community-testing]
|
||||||
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[community]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
|
||||||
|
#[multilib-testing]
|
||||||
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[multilib]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
EOF
|
||||||
|
#}}}
|
||||||
|
# /etc/pacman.d/mirrorlist{{{
|
||||||
|
wget -O- \
|
||||||
|
"https://www.archlinux.org/mirrorlist/?country=$COUNTRY&protocol=http&protocol=https&ip_version=4" |
|
||||||
|
sed 's/^#//;s/^#/##/' |
|
||||||
|
rankmirrors - |
|
||||||
|
tee /etc/pacman.d/mirrorlist
|
||||||
|
#}}}
|
||||||
|
|
||||||
|
mkdir -p /mnt/etc/pacman.d
|
||||||
|
cp -r /mnt/etc/pacman* /etc/
|
||||||
|
}
|
||||||
|
#}}}
|
||||||
# install_base #{{{
|
# install_base #{{{
|
||||||
install_base() {
|
install_base() {
|
||||||
pacstrap /mnt $pkgs_base
|
pacstrap /mnt $pkgs_base
|
||||||
|
@ -373,9 +442,6 @@ configure() {
|
||||||
local boot_dev="$DRIVE"1
|
local boot_dev="$DRIVE"1
|
||||||
local lvm_dev="$DRIVE"2
|
local lvm_dev="$DRIVE"2
|
||||||
|
|
||||||
echo 'Setting repos'
|
|
||||||
set_repos
|
|
||||||
|
|
||||||
echo 'Setting hostname'
|
echo 'Setting hostname'
|
||||||
set_hostname "$HOSTNAME"
|
set_hostname "$HOSTNAME"
|
||||||
|
|
||||||
|
@ -434,75 +500,6 @@ configure() {
|
||||||
rm "$0"
|
rm "$0"
|
||||||
}
|
}
|
||||||
#}}}
|
#}}}
|
||||||
# set_repos() {{{{
|
|
||||||
set_repos() {
|
|
||||||
# /etc/pacman.conf{{{
|
|
||||||
cat > /etc/pacman.conf <<EOF
|
|
||||||
#
|
|
||||||
# GENERAL OPTIONS
|
|
||||||
#
|
|
||||||
[options]
|
|
||||||
HoldPkg = pacman glibc
|
|
||||||
Architecture = auto
|
|
||||||
|
|
||||||
# Misc options
|
|
||||||
#UseSyslog
|
|
||||||
Color
|
|
||||||
#TotalDownload
|
|
||||||
CheckSpace
|
|
||||||
#VerbosePkgLists
|
|
||||||
|
|
||||||
SigLevel = Required DatabaseOptional
|
|
||||||
LocalFileSigLevel = Optional
|
|
||||||
#RemoteFileSigLevel = Required
|
|
||||||
|
|
||||||
#
|
|
||||||
# REPOSITORIES
|
|
||||||
#
|
|
||||||
|
|
||||||
#[testing]
|
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
[core]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
[extra]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
#[community-testing]
|
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
[community]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
|
|
||||||
#[multilib-testing]
|
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
[multilib]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
EOF
|
|
||||||
#}}}
|
|
||||||
# /etc/mirrorlist{{{
|
|
||||||
cat > /etc/mirrorlist <<EOF
|
|
||||||
|
|
||||||
# Server list generated by rankmirrors on 2019-11-24
|
|
||||||
# Brazil
|
|
||||||
Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
|
|
||||||
Server = https://www.caco.ic.unicamp.br/archlinux/$repo/os/$arch
|
|
||||||
Server = http://mirror.ufscar.br/archlinux/$repo/os/$arch
|
|
||||||
Server = http://br.mirror.archlinux-br.org/$repo/os/$arch
|
|
||||||
Server = http://mirror.ufam.edu.br/archlinux/$repo/os/$arch
|
|
||||||
Server = http://www.caco.ic.unicamp.br/archlinux/$repo/os/$arch
|
|
||||||
Server = http://linorg.usp.br/archlinux/$repo/os/$arch
|
|
||||||
Server = http://archlinux.pop-es.rnp.br/$repo/os/$arch
|
|
||||||
Server = http://pet.inf.ufsc.br/mirrors/archlinux/$repo/os/$arch
|
|
||||||
|
|
||||||
EOF
|
|
||||||
#}}}
|
|
||||||
}
|
|
||||||
#}}}
|
|
||||||
# set_hostname() {#{{{
|
# set_hostname() {#{{{
|
||||||
set_hostname() {
|
set_hostname() {
|
||||||
local hostname="$1"; shift
|
local hostname="$1"; shift
|
||||||
|
|
Reference in a new issue