Update arch-init.sh
This commit is contained in:
+11
-5
@@ -1,6 +1,6 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
echo "Timmy's Arch Installer"
|
echo "Timmy's Arch Installer" && sleep 1
|
||||||
|
|
||||||
# Figure out if we are running on a Legacy or UEFI system
|
# Figure out if we are running on a Legacy or UEFI system
|
||||||
echo "1) UEFI System 2) Legacy System"
|
echo "1) UEFI System 2) Legacy System"
|
||||||
@@ -30,13 +30,17 @@ then
|
|||||||
# fdisk formatting
|
# fdisk formatting
|
||||||
(
|
(
|
||||||
echo g;
|
echo g;
|
||||||
|
echo w;
|
||||||
|
echo q
|
||||||
|
) } fdisk /dev/sda
|
||||||
|
|
||||||
|
(
|
||||||
echo n;
|
echo n;
|
||||||
echo "";
|
echo "";
|
||||||
echo "";
|
echo "";
|
||||||
echo +512M;
|
echo +512M;
|
||||||
echo t;
|
echo t;
|
||||||
echo 1;
|
echo 1;
|
||||||
echo 1;
|
|
||||||
echo n;
|
echo n;
|
||||||
echo "";
|
echo "";
|
||||||
echo "";
|
echo "";
|
||||||
@@ -45,6 +49,8 @@ then
|
|||||||
echo "";
|
echo "";
|
||||||
echo "";
|
echo "";
|
||||||
echo ""
|
echo ""
|
||||||
|
echo w;
|
||||||
|
echo q
|
||||||
) | fdisk /dev/sda
|
) | fdisk /dev/sda
|
||||||
|
|
||||||
# actually format the partitions afterwards...
|
# actually format the partitions afterwards...
|
||||||
@@ -53,7 +59,7 @@ then
|
|||||||
mkfs.ext4 /dev/sda3
|
mkfs.ext4 /dev/sda3
|
||||||
|
|
||||||
# mount partitions
|
# mount partitions
|
||||||
echo "Mounting partitions..."
|
echo "Mounting partitions..." && sleep 1
|
||||||
mount /dev/sda2 /mnt
|
mount /dev/sda2 /mnt
|
||||||
mkdir /mnt/home
|
mkdir /mnt/home
|
||||||
mount /dev/sda3 /mnt/home
|
mount /dev/sda3 /mnt/home
|
||||||
@@ -72,11 +78,11 @@ echo "Downloading needed dependencies..."
|
|||||||
pacstrap - /mnt base linux linux-firmware sudo nano git
|
pacstrap - /mnt base linux linux-firmware sudo nano git
|
||||||
|
|
||||||
# generate file-system table
|
# generate file-system table
|
||||||
genfstab -U -p /mnt >> /mnt/etc/fstab
|
genfstab -U -p /mnt >> /mnt/etc/fstab && sleep 1
|
||||||
echo "Generated file-system table..."
|
echo "Generated file-system table..."
|
||||||
|
|
||||||
# post install
|
# post install
|
||||||
echo "Fetching post-install script and chrooting..."
|
echo "Fetching post-install script and chrooting..." && sleep 1
|
||||||
cp arch-post.sh /mnt/root/arch-post.sh
|
cp arch-post.sh /mnt/root/arch-post.sh
|
||||||
arch-chroot /mnt "/bin/bash" "/root/arch-post.sh"
|
arch-chroot /mnt "/bin/bash" "/root/arch-post.sh"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user