diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 12:22:12 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 12:22:12 +0100 |
commit | 1a582b6a1721dab41a8433a652143e7318ddbf32 (patch) | |
tree | 7e4773d1fe74a0d0f7d3a72d0fdae25238c81a34 | |
parent | 8c6f99bf7fad289814537e1d915028ebae4a03b3 (diff) | |
download | archinstall-1a582b6a1721dab41a8433a652143e7318ddbf32.tar archinstall-1a582b6a1721dab41a8433a652143e7318ddbf32.tar.zst archinstall-1a582b6a1721dab41a8433a652143e7318ddbf32.zip |
Implement first Stage for Rewrite
-rw-r--r-- | stages/first_stage.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/stages/first_stage.sh b/stages/first_stage.sh index 000255c..e5b4ee6 100644 --- a/stages/first_stage.sh +++ b/stages/first_stage.sh @@ -102,7 +102,7 @@ else fi -# Format partitions +# Format and mount partitions if [ "$luks_encryption" == "no" ];then if [ "$boot_mode" == "bios" ];then @@ -111,6 +111,8 @@ if [ "$luks_encryption" == "no" ];then e2label ${path_to_disk}1 "boot" mkfs.ext4 ${path_to_disk}2 e2label ${path_to_disk}2 "root" + mount ${path_to_disk}2 /mnt + mount ${path_to_disk}1 /mnt/boot elif [ "$boot_mode" == "uefi" ];then echo "Formatting for no disk encryption and uefi/gpt" ### @@ -139,3 +141,14 @@ else echo "luks_encryption not 'yes' or 'no'! - FAILED" exit 1 fi + + +# Install packages with pacstrap + +pacstrap /mnt base linux linux-firmware networkmanager nano grub # maybe this is requiered: efibootmgr +echo "Installed packages - OK" + + +# Generate /etc/fstab + +genfstab -U /mnt >> /mnt/etc/fstab |