[Bug 238301] [PATCH] handle encrypted swap in dumpon rc.d script
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jun 2 23:02:23 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238301
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 at FreeBSD.org
Reporter: rozhuk.im at gmail.com
Created attachment 204791
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=204791&action=edit
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.
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".
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list