volumio / Build

Buildscripts for Volumio System
GNU General Public License v2.0
113 stars 102 forks source link

fix dynswap.sh #426

Closed macmpi closed 3 years ago

macmpi commented 3 years ago

as per issue https://github.com/volumio/Build/issues/399 /data is part of overlay, and can not be used for swap. swapon: /data/swapfile: swapon failed: Invalid argument

Mount partition into new /swap, and enable swapfile as before

volumio commented 3 years ago

very nice one. were you able to test it?

macmpi commented 3 years ago

Yes, it works on my PiZero. If you do not have such device to test on, you could simulate by changing the memory size test value (512844) to sth exceeding your actual device memory size, and see swap being setup.

volumio commented 3 years ago

Thanks!