Bug 229564 - MINIMAL is not yet minimal
Summary: MINIMAL is not yet minimal
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 11.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Warner Losh
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2018-07-06 08:35 UTC by Helge Oldach
Modified: 2021-07-16 18:32 UTC (History)
2 users (show)

See Also:


Attachments
remove lines from MINIMAL (1.55 KB, patch)
2018-07-06 08:35 UTC, Helge Oldach
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helge Oldach 2018-07-06 08:35:35 UTC
Created attachment 194912 [details]
remove lines from MINIMAL

The MINIMAL kernel config still contains a few things that can (should?) be taken out, either because they should not be used in a production kernel (like WITNESS stuff), or are drivers that are run-time loadable.

(Please note that the loop, random, ether, and bpf devices cannot be removed from the static config because of kernel compile errors, and removing basic screen and keyboard stuff is pointless.)
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2018-07-09 09:08:31 UTC
Assign to Warner who is working on MINIMAL.  My understanding of the current plan is to make it a less minimal on order to increase it's usefulness.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2019-05-21 15:12:15 UTC
Canonicalize assignment.
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-07-11 16:37:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=b21f19c9e0b7f3c923d845e9e31c0552f0162a62

commit b21f19c9e0b7f3c923d845e9e31c0552f0162a62
Author:     Helge Oldach <freebsd@oldach.net>
AuthorDate: 2021-07-11 16:21:11 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-07-11 16:35:42 +0000

    MINIMAL: remove debugging and some loadable network modules

    Remove deugging stuff, since it's arguably not needed in a minimal
    setup. Also vlan, tuntap and gif since they can be loaded.

    imp didn't include the part of the patch that removed xen guest support.
    Xen guest is relatively small and has no way of being loaded.

    Reviewed by:    imp
    PR:             229564
    MFC After:      3 days

 sys/amd64/conf/MINIMAL | 13 -------------
 1 file changed, 13 deletions(-)
Comment 4 Warner Losh freebsd_committer freebsd_triage 2021-07-11 16:38:09 UTC
Committed to main. Queued to my stable/13 MFC queue.
Comment 5 commit-hook freebsd_committer freebsd_triage 2021-07-16 18:32:05 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=864b57281a18ea4a66a43818c9d54104ddd6c8bd

commit 864b57281a18ea4a66a43818c9d54104ddd6c8bd
Author:     Helge Oldach <freebsd@oldach.net>
AuthorDate: 2021-07-11 16:21:11 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-07-16 18:28:44 +0000

    MINIMAL: remove debugging and some loadable network modules

    Remove deugging stuff, since it's arguably not needed in a minimal
    setup. Also vlan, tuntap and gif since they can be loaded.

    imp didn't include the part of the patch that removed xen guest support.
    Xen guest is relatively small and has no way of being loaded.

    Reviewed by:    imp
    PR:             229564
    MFC After:      3 days

    (cherry picked from commit b21f19c9e0b7f3c923d845e9e31c0552f0162a62)

 sys/amd64/conf/MINIMAL | 3 ---
 1 file changed, 3 deletions(-)