From c2d26a1f01eea2d89fdaa71f6728caa0e0e36c92 Mon Sep 17 00:00:00 2001 From: maride Date: Tue, 19 Sep 2017 19:02:14 +0200 Subject: [PATCH] Add swap --- flavours/swapfile.flavour/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 flavours/swapfile.flavour/install.sh diff --git a/flavours/swapfile.flavour/install.sh b/flavours/swapfile.flavour/install.sh new file mode 100755 index 0000000..adf82bf --- /dev/null +++ b/flavours/swapfile.flavour/install.sh @@ -0,0 +1,10 @@ +#!/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/systemctl/swap.conf +echo " Enabling systemd-swap on boot" +arch-chroot /mnt systemctl enable systemd-swap + +amf_return=0