fixed mirrorlist issue adn cleaned up bootstrap

main
Michal S 2 years ago
parent 4dcc06e634
commit b1bfa243bc
No known key found for this signature in database
GPG Key ID: A6A1A4DCB22279B9

@ -1,14 +1,16 @@
#!/usr/bin/env bash
echo "Chrooted in the new system, running as $(whoami)"
# Services
systemctl enable NetworkManager
systemctl enable mirrorlist
systemctl enable gdm
# Mirrorlist
reflector > /etc/pacman.d/mirrorlist
# Hostname and Locale
# Hostname
echo "crystal-live" > /etc/hostname
# Locale
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
locale-gen
echo "Configured the system. Exiting chroot."

@ -23,12 +23,17 @@ chown -R crystal:crystal /home/crystal/
# Services
systemctl enable NetworkManager
systemctl enable mirrorlist
systemctl enable gdm
# Hostname and Locale
# Mirrorlist
reflector > /etc/pacman.d/mirrorlist
# Hostname
echo "crystal-live" > /etc/hostname
# Locale
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
locale-gen
echo "Configured the system. Exiting chroot."

@ -1,11 +0,0 @@
[Unit]
Description=Generates Base Crystal ISO Mirrorlist
Requires=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash -c "reflector > /etc/pacman.d/mirrorlist"
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save