blob: e1a4857a955dabb192bffafd58ae6ab2d1358548 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
if [ -z "$(grep "[[:space:]]${BOOTDIR:=/boot}[[:space:]]vfat[[:space:]]" /proc/mounts)" ]; then
echo "Your /boot is not a fat32 filesystem, so it might not be the EFI mount point. Please read the readme.md and continue setup manually."
exit 1
fi
if [ "$(id -u)" -ne 0 ]; then
echo "Please run as root."
exit 1
fi
cp build_kernel.sh /opt/
mkdir -p /etc/pacman.d/hooks
cp kernel-update.hook /etc/pacman.d/hooks/
echo "Install completed. Building kernels..."
/opt/build_kernel.sh
echo "Done"
|