HomeFreeBSD

swapon: parse md.eli device for encrypted swapfile from fstab

Description

swapon: parse md.eli device for encrypted swapfile from fstab

Summary:
Although fstab(5) suggests usage of md(4) and an .eli suffix in the same
paragraph, the combination did not work.
This patch adds a bit of parsing, creates the md device and then passes
that device to the *_geli function.

Add unit tests.

PR: 186252
Approved by: delphij
MFC after: 2 weeks
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D48874

Details

Provenance
ronald_klop.wsAuthored on Feb 6 2025, 9:50 PM
Differential Revision
D48874: swapon: parse md.eli device for encrypted swapfile from fstab
Parents
rG8ebc0768663b: scandir: Code cleanup.
Branches
Unknown
Tags
Unknown