Created attachment 204791 [details]
Handle encrypted swap.
Then dumpdev="AUTO" then rc.d/dumpon looks for first avail swap file in etc/fstab and if it exist - try to make them as dumpdev.
Typical encrypted swap:
/dev/SOME_DEV.eli none swap sw,late,ealgo=AES-XTS,keylen=256,sectorsize=4096 0 0
Then rc.d/dumpon check this - /dev/SOME_DEV.eli does not exist.
Even if it exist it can not be used as dumpdev die to encrypt key will be destroyed on reboot.
Patch simple strip ".eli" from end of devname before check existence.
1. Probably savecore should have some flag to able to write zeros/random on dumpdev after read dump.
2. Feature req: run "trim" for swap before "swapon".