Add swap
This commit is contained in:
parent
bc13ac0712
commit
c2d26a1f01
10
flavours/swapfile.flavour/install.sh
Executable file
10
flavours/swapfile.flavour/install.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user