summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-09-16 21:52:30 +0200
committerxengineering <mail2xengineering@protonmail.com>2019-09-16 21:52:30 +0200
commit0375e041c36556d30b7b5a3e270269a48daf0882 (patch)
tree466f9d6d9e4ca88417392796167374a4efd09afc /bin
parentd1df29a4a74dacc5da224ce042504c68b4e71ef3 (diff)
downloadarchinstall-0375e041c36556d30b7b5a3e270269a48daf0882.tar
archinstall-0375e041c36556d30b7b5a3e270269a48daf0882.tar.zst
archinstall-0375e041c36556d30b7b5a3e270269a48daf0882.zip
Added scripts in /bin folder.
Diffstat (limited to 'bin')
-rw-r--r--bin/install_bootloader.sh16
-rw-r--r--bin/localization.sh31
-rw-r--r--bin/network_configuration.sh15
-rw-r--r--bin/second_stage.sh34
4 files changed, 96 insertions, 0 deletions
diff --git a/bin/install_bootloader.sh b/bin/install_bootloader.sh
new file mode 100644
index 0000000..8c035ee
--- /dev/null
+++ b/bin/install_bootloader.sh
@@ -0,0 +1,16 @@
+
+
+# Install Grub
+
+pacman --noconfirm -Syu grub efibootmgr
+mount $1 /mnt # $1 = boot_partition_path
+grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=GRUB --removable
+grub-mkconfig -o /boot/grub/grub.cfg
+umount $1
+echo "Grub bootloader installed - OK"
+echo ""
+sleep 1
+
+echo "Leaving chroot environment - OK"
+echo ""
+sleep 1
diff --git a/bin/localization.sh b/bin/localization.sh
new file mode 100644
index 0000000..cb34c31
--- /dev/null
+++ b/bin/localization.sh
@@ -0,0 +1,31 @@
+
+
+# Set timezone
+
+ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
+hwclock --systohc
+echo "Timezone set - OK"
+echo ""
+sleep 1
+
+
+# Localization - Greetings from Germany
+
+echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen
+echo "de_DE ISO-8859-1" >> /etc/locale.gen
+echo "de_DE@euro ISO-8859-15" >> /etc/locale.gen
+
+locale-gen
+
+touch /etc/locale.conf
+echo "LANG=de_DE.UTF-8" > /etc/locale.conf
+
+touch /etc/vconsole.conf
+echo "KEYMAP=de-latin1" > /etc/vconsole.conf
+
+# this just works after installing a desktop environment (e.g. xorg and xfce4 package)
+# localectl --no-convert set-x11-keymap de pc105 nodeadkeys # desktop keyboard layout
+
+echo "German localization done - OK"
+echo ""
+sleep 1
diff --git a/bin/network_configuration.sh b/bin/network_configuration.sh
new file mode 100644
index 0000000..251f9a0
--- /dev/null
+++ b/bin/network_configuration.sh
@@ -0,0 +1,15 @@
+
+
+# Network Configuration
+
+touch /etc/hostname
+echo $1 > /etc/hostname
+
+touch /etc/hosts
+echo "" >> /etc/hosts
+echo "127.0.0.1 localhost" >> /etc/hosts
+echo "::1 localhost" >> /etc/hosts
+
+echo "Network configuration done - OK"
+echo ""
+sleep 1
diff --git a/bin/second_stage.sh b/bin/second_stage.sh
new file mode 100644
index 0000000..59203cd
--- /dev/null
+++ b/bin/second_stage.sh
@@ -0,0 +1,34 @@
+
+
+# Second Stage of archinstall
+
+
+hostname=$1
+boot_partition_path=$2
+
+
+# Localization
+
+bash /opt/archinstall.git/bin/localization.sh
+
+
+# Network Configuration
+bash /opt/archinstall.git/bin/network_configuration.sh $hostname
+
+
+# Initramfs
+
+# implement if needed ...
+
+
+# Set default Password
+
+echo "root:root" | chpasswd
+echo "Default password for user root set - OK"
+echo ""
+sleep 1
+
+
+# Bootloader Installation
+
+bash /opt/archinstall.git/bin/install_bootloader.sh $boot_partition_path