diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 18:09:06 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 18:09:06 +0100 |
commit | 4caebd10edfd7a7d6515185637bd52067bd56ace (patch) | |
tree | ac2fa2e4221515796145284ffd8f4bbba06f349b /stages/second_stage.sh | |
parent | 7a26c8516f712ee8ea58690bb5dd696efa920295 (diff) | |
parent | ebf7eac32d7ce0f176e269d6647ed1914cdeaff9 (diff) | |
download | archinstall-4caebd10edfd7a7d6515185637bd52067bd56ace.tar archinstall-4caebd10edfd7a7d6515185637bd52067bd56ace.tar.zst archinstall-4caebd10edfd7a7d6515185637bd52067bd56ace.zip |
Merging feature_bios into devel
Diffstat (limited to 'stages/second_stage.sh')
-rw-r--r-- | stages/second_stage.sh | 51 |
1 files changed, 39 insertions, 12 deletions
diff --git a/stages/second_stage.sh b/stages/second_stage.sh index 192b946..ea623a7 100644 --- a/stages/second_stage.sh +++ b/stages/second_stage.sh @@ -18,25 +18,52 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. +# Stop at any error to optimize debugging: + +set -e + + +# Debug output + echo "Entering second_stage.sh - OK" -bash configure_keyboard.sh de-latin1 +# Set timezone + +ln -sf $path_to_timezone /etc/localtime +hwclock --systohc + + +# Localization + +echo "$locales_to_generate" >> /etc/locale.gen +locale-gen +touch /etc/locale.conf +echo "LANG=$language" >> /etc/locale.conf +touch /etc/vconsole.conf +echo "KEYMAP=$keymap" >> /etc/vconsole.conf + + +# Network configuration + +touch /etc/hostname +echo "$hostname" > /etc/hostname +touch /etc/hosts +echo "127.0.0.1 localhost" >> /etc/hosts +echo "::1 localhost" >> /etc/hosts + + +# Initramfs -bash configure_locales.sh +### to be implemented -bash configure_timezone.sh /usr/share/zoneinfo/Europe/Berlin -bash configure_network.sh $hostname +# Setting root password -if [ $system_encryption == "yes" ]; then - bash configure_initramfs.sh -fi +echo "root:${DEFAULT_PASSWORD}" | chpasswd -bash configure_users.sh $admin_username $DEFAULT_PASSWORD -bash install_bootloader.sh $efi_partition_path $system_encryption $main_partition_path +# Install bootloader -if [ "$desktop" = "yes" ]; then - bash configure_desktop.sh $desktop -fi +grub-install --target=i386-pc $path_to_disk +grub-mkconfig -o /boot/grub/grub.cfg |