OSDN Git Service

pacstrap
authorpaperbenni <paperbenni@gmail.com>
Sun, 29 Mar 2020 22:39:41 +0000 (00:39 +0200)
committerpaperbenni <paperbenni@gmail.com>
Sun, 29 Mar 2020 22:39:41 +0000 (00:39 +0200)
disk/disk.sh
init/init.sh [new file with mode: 0644]
pacstrap/pacstrap.sh [new file with mode: 0644]

index 02383cf..79062b5 100644 (file)
@@ -11,3 +11,9 @@ echo "selected disk $(cat /root/instantdisk)"
 
 sed -i "s/instantdisk/$DISK/g" /root/instantARCH/disk/format.sh
 /root/instantARCH/disk/format.sh
+
+mkfs.ext4 ${DISK}1
+mkswap ${DISK}2
+swapon ${DISK}2
+
+echo "done partitioning disks"
\ No newline at end of file
diff --git a/init/init.sh b/init/init.sh
new file mode 100644 (file)
index 0000000..7355ad3
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+timedatectl set-ntp true
\ No newline at end of file
diff --git a/pacstrap/pacstrap.sh b/pacstrap/pacstrap.sh
new file mode 100644 (file)
index 0000000..473a7f3
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+DISK=$(cat /root/instantdisk)
+
+mount ${DISK}1 /mnt
+pacman -Sy
+pacstrap /mnt base linux linux-firmware
+
+genfstab -U /mnt >> /mnt/etc/fstab