Added dhcpcd
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user