1
0
forked from extern/nix-config

archlinux: Update install scripts

Instead of running two systemctl commands (start and enable),
one can simply use `systemctl enable --now` instead.

The grub command was removed since I never used it and haven't
found a need to do so.
This commit is contained in:
Donovan Glover 2018-11-15 21:15:15 -05:00
parent df766c3a48
commit 200d2b9e7a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 1 additions and 9 deletions

View File

@ -14,16 +14,12 @@ timedatectl set-ntp true
# enable boot for it. Then, create a primary swap partition with # enable boot for it. Then, create a primary swap partition with
# the remaining disk space. # the remaining disk space.
parted /dev/sda mklabel msdos parted /dev/sda mklabel msdos
parted /dev/sda mkpart primary ext4 1MiB 60GiB parted /dev/sda mkpart primary ext4 1MiB 60GiB
parted /dev/sda set 1 boot on parted /dev/sda set 1 boot on
parted /dev/sda mkpart primary linux-swap 60GiB 100% parted /dev/sda mkpart primary linux-swap 60GiB 100%
# Format sda1 with ext4 and sda2 with swap # Format sda1 with ext4 and sda2 with swap
mkfs -t ext4 /dev/sda1 mkfs -t ext4 /dev/sda1
mkswap /dev/sda2 mkswap /dev/sda2
# Enable the swap partition # Enable the swap partition

View File

@ -46,9 +46,6 @@ arch-chroot /mnt grub-install /dev/sda
# Prevent the GRUB window from showing at boot, ideal for single OS machines (undo with chroot and mkconfig) # Prevent the GRUB window from showing at boot, ideal for single OS machines (undo with chroot and mkconfig)
sed -i '/GRUB_TIMEOUT/c\GRUB_TIMEOUT=0' /mnt/etc/default/grub sed -i '/GRUB_TIMEOUT/c\GRUB_TIMEOUT=0' /mnt/etc/default/grub
# This should make the startup process not output anything (not tested)
sed -i '/GRUB_CMDLINE_LINUX_DEFAULT/c\GRUB_CMDLINE_LINUX_DEFAULT="quiet show_status=0 rd.udev.log-priority=3 loglevel=3"' /mnt/etc/default/grub
# Make the configuration file for grub. # Make the configuration file for grub.
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg

View File

@ -11,8 +11,7 @@ echo -n "Enter a username for the local account with administrative rights: "
read USERNAME read USERNAME
# Start and enable the DHCP client daemon service # Start and enable the DHCP client daemon service
systemctl start dhcpcd.service systemctl enable --now dhcpcd.service
systemctl enable dhcpcd.service
# Set the timezone with systemd, and sync it periodically with a remote server # Set the timezone with systemd, and sync it periodically with a remote server
timedatectl set-timezone America/New_York timedatectl set-timezone America/New_York