adamant-kite-43734
07/10/2023, 12:27 PMsticky-tailor-45974
07/10/2023, 1:04 PMsticky-tailor-45974
07/10/2023, 1:09 PM/elemental/config.d/custom.yaml
to configure partitions. Elemental installer cannot create a swap partition (even it should not be hard to add implement) however it can define size if all current partitions, then if the disk is bigger it will just let some free space which could later on be partitioned for swap in an install hook.few-jordan-3349
07/11/2023, 6:43 AMsticky-tailor-45974
07/11/2023, 7:10 AMenough-animal-77820
07/18/2023, 7:33 AMname: "Setup swap"
stages:
fs:
- name: "Enable Swap"
if: '[ ! -f "/run/cos/live_mode" ]'
commands:
- |
dd if=/dev/zero of=/usr/local/swapfile bs=1M count=1000
chmod 0600 /usr/local/swapfile
mkswap /usr/local/swapfile
swapon /usr/local/swapfile