From c9749849b5f5b1e13fcf5bd40951e60fbcac985b Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 25 Nov 2019 18:19:58 +0100 Subject: Added default DHCP support. --- bin/first_stage.sh | 2 +- bin/second_stage.sh | 5 +++++ bin/setup_dhcp.sh | 27 +++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 bin/setup_dhcp.sh (limited to 'bin') diff --git a/bin/first_stage.sh b/bin/first_stage.sh index 629c750..472a814 100644 --- a/bin/first_stage.sh +++ b/bin/first_stage.sh @@ -115,7 +115,7 @@ echo "" echo "Going to install basic packages ..." sleep $DELAY echo "" -pacstrap /mnt base linux linux-firmware dhcpcd +pacstrap /mnt base linux linux-firmware echo "" echo "Installed basic packages - OK" sleep $DELAY diff --git a/bin/second_stage.sh b/bin/second_stage.sh index 01739ba..5c2f8d8 100644 --- a/bin/second_stage.sh +++ b/bin/second_stage.sh @@ -67,6 +67,11 @@ if [ "$desktop" = "yes" ]; then fi +# DHCP Setup + +bash $REPOSITORY_PATH/bin/setup_dhcp.sh + + # Good bye chroot echo "Leaving chroot environment - OK" diff --git a/bin/setup_dhcp.sh b/bin/setup_dhcp.sh new file mode 100644 index 0000000..dbd3e18 --- /dev/null +++ b/bin/setup_dhcp.sh @@ -0,0 +1,27 @@ +#!/bin/bash + + +# archinstall - A minimal Installation Script for Arch Linux +# Copyright (C) 2019 xengineering + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +################### +# setup_dhcp.sh # +################### + + +pacman --no-confirm -Syu dhcpcd +systemctl enable dhcpcd -- cgit v1.2.3-70-g09d2