Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from telmotrooper/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
telmotrooper authored Jun 1, 2020
2 parents 40fca43 + 4025e15 commit 05deba0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion steps/step1.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
os.system("loadkeys br-abnt2")

print("Writing brazilian mirrors to Pacman's mirrorlist")
os.system("wget -qO- 'https://www.archlinux.org/mirrorlist/?country=BR&use_mirror_status=on' | sed 's/#S/S/g' | sed '/## Brazil/d' > /etc/pacman.d/mirrorlist")
os.system("pacman -S reflector --noconfirm")
os.system("reflector --country Brazil --age 12 --sort rate --save /etc/pacman.d/mirrorlist")
#os.system("wget -qO- 'https://www.archlinux.org/mirrorlist/?country=BR&use_mirror_status=on' | sed 's/#S/S/g' | sed '/## Brazil/d' > /etc/pacman.d/mirrorlist")

print("Setting timezone to " + yellow("America/Sao_Paulo"))
os.system("timedatectl set-ntp true")
Expand Down
1 change: 1 addition & 0 deletions steps/step2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
os.system("pacstrap /mnt python wget")
os.system("genfstab -U /mnt >> /mnt/etc/fstab")
os.system("cp -r /root/tali /mnt/tali")
os.system("cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist")
os.system("arch-chroot /mnt python tali/install.py --step 3")
else:
# TODO: Make this a function, since this dialog is also used in step 1.
Expand Down
11 changes: 9 additions & 2 deletions steps/step3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os, subprocess
from getpass import getpass
from utils.disk_utils import select_disk
from utils.yes_no_dialog import yes_no_dialog

os.system("pacman -S --noconfirm ttf-bitstream-vera ttf-droid noto-fonts-emoji grub "
"gdm cinnamon gnome-terminal firefox gnome-screenshot gnome-system-monitor gedit "
Expand Down Expand Up @@ -86,8 +87,14 @@
boot = "UEFI"

if(boot == "UEFI"):
os.system("pacman -S --noconfirm efibootmgr")
os.system("grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB")
use_refind = yes_no_dialog("Since you're on UEFI, you can opt for rEFInd instead of GRUB. Would you like to do that?")

if(use_refind):
os.system("pacman -S --noconfirm refind")
os.system("refind-install")
else:
os.system("pacman -S --noconfirm efibootmgr")
os.system("grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB")
else:
print("In which disk should GRUB be installed?")
disk = select_disk()
Expand Down

0 comments on commit 05deba0

Please sign in to comment.