]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
growfs_fstab startup script: set dumpdev to AUTO
authorMike Karels <karels@FreeBSD.org>
Tue, 28 Feb 2023 13:55:35 +0000 (07:55 -0600)
committerMike Karels <karels@FreeBSD.org>
Thu, 9 Mar 2023 13:05:01 +0000 (07:05 -0600)
commit62679a0594ddd71292894e1c02df23c696ee7801
tree4d1164dc791bccdc8bc60eb6043d33c454371d00
parent648bd2b1a6ebafddb07cbc024d42b99b7eaa1c9e
growfs_fstab startup script: set dumpdev to AUTO

The growfs_fstab script has been testing dumpdev, and if it is AUTO,
enables dumps on the newly-added swap device for the initial boot.
However, dumpdev defaults to AUTO on main, but NO on stable/13 and
release branches.  On the other hand, bsdinstall adds dumpdev="AUTO"
by default (controlled by a menu item).  bsdinstall is not used when
booting an SD card or other disk image.  Adopt the default from
bsdinstall, and set dumpdev to AUTO in /etc/rc.conf in the
growfs_fstab script if a swap partition has been added, along with
the explanatory comment added by bsdinstall.

Approved by: re (cperciva)
Differential Revision: https://reviews.freebsd.org/D38751

(cherry picked from commit eef9f9900f118b5efcabbd5864e7b8b993d09922)
(cherry picked from commit 009abff336b6e83219178e7d87f6a91f54e31839)
libexec/rc/rc.d/growfs_fstab