:: Re: [DNG] Ugly, ugly news
Página Inicial
Delete this message
Reply to this message
Autor: Adam Borowski
Data:  
Para: dng
Assunto: Re: [DNG] Ugly, ugly news
On Mon, Jul 25, 2016 at 09:41:44PM +0200, Adam Borowski wrote:
> On Mon, Jul 25, 2016 at 02:07:07PM -0400, Steve Litt wrote:
> > This is a screenshot of my buddy's kernel menuconfig:
> >
> > https://sanitarium.net/x.png
>
> Whose kernel tree is this?
>
> Not in Linus', and googling that phrase shows nothing.


Gentoo's patch, they probably don't have their unpacked sources anywhere on
the web for googlebot to pick up.

Actually, it's pretty nice. It's a metaselection that depends on config
settings needed by particular programs.

A copy of this patch for your reading attached.

--
An imaginary friend squared is a real enemy.
--- a/Kconfig    2016-07-01 19:22:17.117439707 -0400
+++ b/Kconfig    2016-07-01 19:21:54.371440596 -0400
@@ -8,4 +8,6 @@ config SRCARCH
     string
     option env="SRCARCH"


+source "distro/Kconfig"
+
 source "arch/$SRCARCH/Kconfig"
--- /dev/null    2016-07-01 11:23:26.087932647 -0400
+++ b/distro/Kconfig    2016-07-01 19:32:35.581415519 -0400
@@ -0,0 +1,134 @@
+menu "Gentoo Linux"
+
+config GENTOO_LINUX
+    bool "Gentoo Linux support"
+
+    default y
+
+    help
+        In order to boot Gentoo Linux a minimal set of config settings needs to
+        be enabled in the kernel; to avoid the users from having to enable them
+        manually as part of a Gentoo Linux installation or a new clean config,
+        we enable these config settings by default for convenience.
+
+        See the settings that become available for more details and fine-tuning.
+
+config GENTOO_LINUX_UDEV
+    bool "Linux dynamic and persistent device naming (userspace devfs) support"
+
+    depends on GENTOO_LINUX
+    default y if GENTOO_LINUX
+
+    select DEVTMPFS
+    select TMPFS
+
+    select MMU
+    select SHMEM
+
+    help
+        In order to boot Gentoo Linux a minimal set of config settings needs to
+        be enabled in the kernel; to avoid the users from having to enable them
+        manually as part of a Gentoo Linux installation or a new clean config,
+        we enable these config settings by default for convenience.
+
+        Currently this only selects TMPFS, DEVTMPFS and their dependencies.
+        TMPFS is enabled to maintain a tmpfs file system at /dev/shm, /run and
+        /sys/fs/cgroup; DEVTMPFS to maintain a devtmpfs file system at /dev.
+
+        Some of these are critical files that need to be available early in the
+        boot process; if not available, it causes sysfs and udev to malfunction.
+
+        To ensure Gentoo Linux boots, it is best to leave this setting enabled;
+        if you run a custom setup, you could consider whether to disable this.
+
+config GENTOO_LINUX_PORTAGE
+    bool "Select options required by Portage features"
+
+    depends on GENTOO_LINUX
+    default y if GENTOO_LINUX
+
+    select CGROUPS
+    select NAMESPACES
+    select IPC_NS
+    select NET_NS
+    select SYSVIPC
+
+    help
+        This enables options required by various Portage FEATURES.
+        Currently this selects:
+
+        CGROUPS     (required for FEATURES=cgroup)
+        IPC_NS      (required for FEATURES=ipc-sandbox)
+        NET_NS      (required for FEATURES=network-sandbox)
+        SYSVIPC     (required by IPC_NS)
+   
+
+        It is highly recommended that you leave this enabled as these FEATURES
+        are, or will soon be, enabled by default.
+
+menu "Support for init systems, system and service managers"
+    visible if GENTOO_LINUX
+
+config GENTOO_LINUX_INIT_SCRIPT
+    bool "OpenRC, runit and other script based systems and managers"
+
+    default y if GENTOO_LINUX
+
+    depends on GENTOO_LINUX
+
+    select BINFMT_SCRIPT
+
+    help
+        The init system is the first thing that loads after the kernel booted.
+
+        These config settings allow you to select which init systems to support;
+        instead of having to select all the individual settings all over the
+        place, these settings allows you to select all the settings at once.
+
+        This particular setting enables all the known requirements for OpenRC,
+        runit and similar script based systems and managers.
+
+        If you are unsure about this, it is best to leave this setting enabled.
+
+config GENTOO_LINUX_INIT_SYSTEMD
+    bool "systemd"
+
+    default n
+
+    depends on GENTOO_LINUX && GENTOO_LINUX_UDEV
+
+    select AUTOFS4_FS
+    select BLK_DEV_BSG
+    select CGROUPS
+    select DEVPTS_MULTIPLE_INSTANCES
+    select EPOLL
+    select FANOTIFY
+    select FHANDLE
+    select INOTIFY_USER
+    select NET
+    select NET_NS
+    select PROC_FS
+    select SIGNALFD
+    select SYSFS
+    select TIMERFD
+
+    select ANON_INODES
+    select BLOCK
+    select EVENTFD
+    select FSNOTIFY
+    select INET
+    select NLATTR
+
+    help
+        The init system is the first thing that loads after the kernel booted.
+
+        These config settings allow you to select which init systems to support;
+        instead of having to select all the individual settings all over the
+        place, these settings allows you to select all the settings at once.
+
+        This particular setting enables all the known requirements for systemd;
+        it also enables suggested optional settings, as the package suggests to.
+
+endmenu
+
+endmenu