summaryrefslogtreecommitdiff
path: root/archinstall.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-09-16 21:36:06 +0200
committerxengineering <mail2xengineering@protonmail.com>2019-09-16 21:36:06 +0200
commite5fd0530725139d7dfbdd719c09dbd6a5b7c9a1f (patch)
tree5a01557592b471eb39b47a0e4ebc3d0ad8148800 /archinstall.sh
parent3d29eb877372f564879300bf2ba25f6bf5ecfa06 (diff)
downloadarchinstall-e5fd0530725139d7dfbdd719c09dbd6a5b7c9a1f.tar
archinstall-e5fd0530725139d7dfbdd719c09dbd6a5b7c9a1f.tar.zst
archinstall-e5fd0530725139d7dfbdd719c09dbd6a5b7c9a1f.zip
First test with ignored second stage.
Diffstat (limited to 'archinstall.sh')
-rw-r--r--archinstall.sh125
1 files changed, 5 insertions, 120 deletions
diff --git a/archinstall.sh b/archinstall.sh
index ba074c2..5832447 100644
--- a/archinstall.sh
+++ b/archinstall.sh
@@ -208,124 +208,9 @@ sleep $DELAY
echo ""
-# Deploy second Stage Script to new root
+# Install git in new environment and clone archinstall repository
-echo "Going to deploy second stage script for chroot environment ..."
-sleep $DELAY
-echo ""
-
-cat > /mnt/root/secondstage.sh << EOL
-
-# 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
-
-
-# Network Configuration
-
-touch /etc/hostname
-echo $hostname > /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
-
-
-# Initramfs
-
-# implement if needed ...
-
-
-# Set default Password
-
-echo "root:root" | chpasswd
-echo "Default password for user root set - OK"
-echo ""
-sleep 1
-
-
-# Install Grub
-
-pacman --noconfirm -Syu grub efibootmgr
-mount $boot_partition_path /mnt
-grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=GRUB --removable
-grub-mkconfig -o /boot/grub/grub.cfg
-umount $boot_partition_path
-echo "Grub bootloader installed - OK"
-echo ""
-sleep 1
-
-echo "Leaving chroot environment - OK"
-echo ""
-sleep 1
-
-EOL
-
-chmod 744 /mnt/root/secondstage.sh
-
-echo "Second stage script deployed - OK"
-echo ""
-sleep 1
-
-
-# Chroot to new System and launch second Stage
-
-echo "Running second stage in chroot ..."
-sleep $DELAY
-echo ""
-echo "/root/secondstage.sh" | arch-chroot /mnt
-
-
-# Removing second Stage Script and umount the Root Partition
-
-rm /mnt/root/secondstage.sh
-umount $root_partition_path
-echo "Removed second stage script and unmounted root partition - OK"
-sleep $DELAY
-echo ""
-
-
-# Final Messages
-
-cat << EOF
-#################################################################
-# #
-# The default login is user root with password 'root'. #
-# You can now power off your machine with 'poweroff', #
-# remove the installation media and boot your new #
-# Arch Linux machine! #
-# #
-#################################################################
-
-EOF
+echo "pacman --noconfirm -Syu git" | arch-chroot /mnt
+echo "cd /opt && git clone https://github.com/xengineering/archinstall" | arch-chroot /mnt
+echo "cd /opt/archinstall && git checkout feature_01" | arch-chroot /mnt # JUST FOR DEBUGGING!!!
+echo "bash /opt/archinstall/bin/test.sh" | arch-chroot /mnt