Created attachment 169100 [details] Patch against -CURRENT r297697 Hi, Find attached a patch to bsdinstall's zfsboot script that prevents adding a swap line to fstab when swapsize is 0. Best regards, Ganael Laplanche.
This looks like my fault. I added this feature earlier, but didn't account for the case where a user would ask for 0 bytes of swap, but demand that that swap be encrypted. Thanks for the patch.
A commit references this bug: Author: allanjude Date: Fri Apr 8 15:05:06 UTC 2016 New revision: 297712 URL: https://svnweb.freebsd.org/changeset/base/297712 Log: Do not add swap to fstab when swapsize is 0 If a user requested encrypted swap, but 0 sized, it would still be added to fstab PR: 208630 Submitted by: Ganael LAPLANCHE <ganael.laplanche@corp.ovh.com> MFC after: 2 weeks Sponsored by: ScaleEngine Inc. Changes: head/usr.sbin/bsdinstall/scripts/zfsboot
Thanks Allan !