summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-11-25 18:19:58 +0100
committerxengineering <mail2xengineering@protonmail.com>2019-11-25 18:19:58 +0100
commitc9749849b5f5b1e13fcf5bd40951e60fbcac985b (patch)
tree3e8a58e929e558f7f674aed2706a18d014f2ef8f /bin
parent7a2cce51d1d3793d2cdca08c50b9c63434196595 (diff)
downloadarchinstall-c9749849b5f5b1e13fcf5bd40951e60fbcac985b.tar
archinstall-c9749849b5f5b1e13fcf5bd40951e60fbcac985b.tar.zst
archinstall-c9749849b5f5b1e13fcf5bd40951e60fbcac985b.zip
Added default DHCP support.
Diffstat (limited to 'bin')
-rw-r--r--bin/first_stage.sh2
-rw-r--r--bin/second_stage.sh5
-rw-r--r--bin/setup_dhcp.sh27
3 files changed, 33 insertions, 1 deletions
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 <https://www.gnu.org/licenses/>.
+
+
+###################
+# setup_dhcp.sh #
+###################
+
+
+pacman --no-confirm -Syu dhcpcd
+systemctl enable dhcpcd