Date: Sun, 02 Jun 2019 23:02:20 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238301] [PATCH] handle encrypted swap in dumpon rc.d script Message-ID: <bug-238301-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238301 Bug ID: 238301 Summary: [PATCH] handle encrypted swap in dumpon rc.d script Product: Base System Version: 12.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: rozhuk.im@gmail.com Created attachment 204791 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204791&action= =3Dedit Handle encrypted swap. Then dumpdev=3D"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=20=20=20 sw,late,ealgo=3DAES-XTS,keylen=3D256,sectorsize=3D4096 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. PS: 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". --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238301-227>