Added dhcpcd

This commit is contained in:
TuDatTr
2020-05-24 05:43:40 +02:00
parent 6bf1035784
commit fe3e3eb5ee
3 changed files with 4 additions and 4 deletions

View File

@@ -109,11 +109,10 @@ mount $cryptroot /mnt
mkdir /mnt/boot mkdir /mnt/boot
mount $bootpart /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 genfstab -U /mnt >> /mnt/etc/fstab
cp $CWD/etc/systemd/system/march.service /mnt/etc/systemd/system/march.service 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-chroot.sh /mnt/root/march-chroot.sh
cp $CWD/root/march-reboot.sh /mnt/root/march-reboot.sh cp $CWD/root/march-reboot.sh /mnt/root/march-reboot.sh

View File

@@ -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 sed -i "s/march-reboot.sh/\0 -u \"$username\" -s \"$sudogrp\"/" /etc/systemd/system/march.service
systemctl enable march.service systemctl enable march.service
systemctl enable dhcpcd.service

View File

@@ -7,8 +7,8 @@ if [[ ${PIPESTATUS[0]} -ne 4 ]]; then
exit 1 exit 1
fi fi
OPTIONS=us OPTIONS=u:s:
LONGOPTS=username,sudogrp LONGOPTS=username:,sudogrp:
! PARSED=$(getopt --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@") ! PARSED=$(getopt --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@")
if [[ ${PIPESTATUS[0]} -ne 0 ]]; then if [[ ${PIPESTATUS[0]} -ne 0 ]]; then