[Bug 276645] Fix for swapon overwriting Linux swap header
Date: Fri, 26 Jan 2024 17:34:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276645
Bug ID: 276645
Summary: Fix for swapon overwriting Linux swap header
Product: Base System
Version: 14.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: rbranco@suse.com
The Linux swap partition uses a 4096-byte header that holds the label & UUID.
You can see the structure here:
https://github.com/util-linux/util-linux/blob/master/include/swapheader.h
The problem is thus how to prevent FreeBSD from overwriting the header. It
turns out there's a neat way to do just that with GEOM using the gnop system
tool.
This PR modifies swapon to automate this process, which also works with
/etc/fstab. This will benefit dual-boot installations and also live-CD's.
Fix: https://github.com/freebsd/freebsd-src/pull/1084
--
You are receiving this mail because:
You are the assignee for the bug.