From fe3e3eb5ee9c93d4f9a93d1a0798138bfef5fb40 Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Sun, 24 May 2020 05:43:40 +0200 Subject: [PATCH] Added dhcpcd --- install.sh | 3 +-- root/march-chroot.sh | 1 + root/march-reboot.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 5455241..0d14f71 100755 --- a/install.sh +++ b/install.sh @@ -109,11 +109,10 @@ mount $cryptroot /mnt mkdir /mnt/boot mount $bootpart /mnt/boot -pacstrap /mnt base base-devel linux linux-firmware +pacstrap /mnt base base-devel linux linux-firmware dhcpcd genfstab -U /mnt >> /mnt/etc/fstab - cp $CWD/etc/systemd/system/march.service /mnt/etc/systemd/system/march.service cp $CWD/root/march-chroot.sh /mnt/root/march-chroot.sh cp $CWD/root/march-reboot.sh /mnt/root/march-reboot.sh diff --git a/root/march-chroot.sh b/root/march-chroot.sh index 62d2c2d..41b0f4a 100644 --- a/root/march-chroot.sh +++ b/root/march-chroot.sh @@ -114,3 +114,4 @@ options rw cryptdevice=$(blkid $rootpart | cut -d" " -f2 | tr -d \"):cryptroot r sed -i "s/march-reboot.sh/\0 -u \"$username\" -s \"$sudogrp\"/" /etc/systemd/system/march.service systemctl enable march.service +systemctl enable dhcpcd.service diff --git a/root/march-reboot.sh b/root/march-reboot.sh index 5a3a928..dc5cf2c 100644 --- a/root/march-reboot.sh +++ b/root/march-reboot.sh @@ -7,8 +7,8 @@ if [[ ${PIPESTATUS[0]} -ne 4 ]]; then exit 1 fi -OPTIONS=us -LONGOPTS=username,sudogrp +OPTIONS=u:s: +LONGOPTS=username:,sudogrp: ! PARSED=$(getopt --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@") if [[ ${PIPESTATUS[0]} -ne 0 ]]; then