Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Nov 2022 03:23:43 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        Jonathan Vasquez <jon@xyinn.org>
Cc:        void@f-m.fm, freebsd-stable@freebsd.org
Subject:   Re: savecore: operation not permitted
Message-ID:  <Y4NIv3%2BH0fnDUkn0@albert.catwhisker.org>
In-Reply-To: <_nTojcbkVMksWqsbOXlWk4Vktpu7EU7wJRDP3NjXeCTbrs7GCiAt6Ubb34v-3-1vT8vKCqWvPXYlM8iIeeX8pawVT6JwlKfD2jJLsm3TZMg=@xyinn.org>
References:  <Y4JYp7YDmsYZybab@sysmon.zyxst.net> <_nTojcbkVMksWqsbOXlWk4Vktpu7EU7wJRDP3NjXeCTbrs7GCiAt6Ubb34v-3-1vT8vKCqWvPXYlM8iIeeX8pawVT6JwlKfD2jJLsm3TZMg=@xyinn.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--jP4+lvZQEFAr1e0c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 27, 2022 at 05:48:13AM +0000, Jonathan Vasquez wrote:
> Make sure you aren't using an encrypted swap (i.e if you have the .eli ex=
tension for your swap entry in /etc/fstab, then it's being encrypted). That=
 was the issue I had, it makes sense that you can't get the dumped data if =
the swap is being re-encrypted on every boot.
> ....

For this use case (desire to be able to get crash dumps while having
swap encrypted), I find that adding the "late" attribute to the
"swap" entry in /etc/fstab is useful, thus:

g1-51(12.4-S)[1] grep swap /etc/fstab
/dev/ada0s4b.eli        none            swap    sw,late         0       0

(Thta is, of course, assuming that one uses fstab to control the
swap allocation.  If not, arranging to perform the allocation as
part of execution of /etc/rc.d/swaplate -- which is what the "late"
attribute accomplishes -- should work for you.)

I have used the above technique successfully for stable/12, stable/13,
and head (current/14).

Peace,
david
--=20
David H. Wolfskill                              david@catwhisker.org
"attempts made by certain countries to rewrite and reshape world history
are becoming increasingly aggressive, ultimately and obviously seeking
to divide our society, take away our guiding lines and eventually weaken
Russia."  -- V. Putin, obviously referring to his own efforts

See https://www.catwhisker.org/~david/publickey.gpg for my public key.

--jP4+lvZQEFAr1e0c
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iNUEARYKAH0WIQSr0Kzv+UJRY3wfOii0+6PfV4Ix1AUCY4NIv18UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QUJE
MEFDRUZGOTQyNTE2MzdDMUYzQTI4QjRGQkEzREY1NzgyMzFENAAKCRC0+6PfV4Ix
1GaGAQD2CBCckDWUqsbwxyX3WRQ7UO/bhQg7XdqLRDHHr8VJTQEA1Fw58VZrvBQD
bKxSfjxdn6p8pRrKLci34GJToXbuiwQ=
=A4s3
-----END PGP SIGNATURE-----

--jP4+lvZQEFAr1e0c--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Y4NIv3%2BH0fnDUkn0>