11 lines
291 B
Bash
Executable File
11 lines
291 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "~> Installing systemd-swap"
|
|
pacstrap /mnt systemd-swap
|
|
echo " Patching swap.conf"
|
|
arch-chroot /mnt sed -i "s/\$swapfu_enabled=0/swapfu_enabled=1/g" /etc/systemd/swap.conf
|
|
echo " Enabling systemd-swap on boot"
|
|
arch-chroot /mnt systemctl enable systemd-swap
|
|
|
|
amf_return=0
|