blob: 7ae7361dc43196d327e8ecae682ab32714f1fb8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#! /bin/bash
SWPF=/mnt/swapfile
modprobe efivarfs
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
parted /dev/sda set 1 bios_grub on
echo "MOUNT"
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
mount /dev/sda3 /mnt/home
echo "SWAPFS"
dd if=/dev/zero of=$SWPF bs=1M count=1024 || exit 1
chmod 600 $SWPF || exit 1
mkswap $SWPF || exit 1
swapon $SWPF || exit 1
genfstab -U -p /mnt >> /mnt/etc/fstab2
arch-chroot /mnt
|