arch-maride-flavour/flavours/swapfile.flavour/install.sh

11 lines
291 B
Bash
Raw Permalink Normal View History

2017-09-19 17:02:14 +00:00
#!/bin/sh
echo "~> Installing systemd-swap"
pacstrap /mnt systemd-swap
echo " Patching swap.conf"
2017-09-20 13:51:03 +00:00
arch-chroot /mnt sed -i "s/\$swapfu_enabled=0/swapfu_enabled=1/g" /etc/systemd/swap.conf
2017-09-19 17:02:14 +00:00
echo " Enabling systemd-swap on boot"
arch-chroot /mnt systemctl enable systemd-swap
amf_return=0