Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2024 17:34:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 276645] Fix for swapon overwriting Linux swap header
Message-ID:  <bug-276645-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276645

            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 & UUI=
D.
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

--=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-276645-227>