From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932700AbcASRw5 (ORCPT ); Tue, 19 Jan 2016 12:52:57 -0500 Received: from mail-io0-f175.google.com ([209.85.223.175]:34191 "EHLO mail-io0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932590AbcASRwt (ORCPT ); Tue, 19 Jan 2016 12:52:49 -0500 Subject: Re: [RFC] CONFIG_GENERIC_BOOTABLE_CONFIG=y To: Linus Torvalds , Ingo Molnar References: <20160108133725.GH14673@pd.tnic> <568FCC45.1010301@suse.cz> <20160111194311.GF4686@pd.tnic> <20160111205945.GH4686@pd.tnic> <20160111211712.GI4686@pd.tnic> <20160114184350.GB12109@pd.tnic> <20160119082022.GB18237@gmail.com> <569E089B.2000808@suse.cz> <20160119103038.GA5301@gmail.com> Cc: Michal Marek , Borislav Petkov , Greg Kroah-Hartman , Andrew Morton , =?UTF-8?B?TcOlbnMgUnVsbGfDpXJk?= , Markus Trippelsdorf , Thomas Voegtle , Linux Kernel Mailing List , x86-ml , Peter Zijlstra , Thomas Gleixner , Jiri Olsa , Arnaldo Carvalho de Melo , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= From: "Austin S. Hemmelgarn" Message-ID: <569E77C4.3050809@gmail.com> Date: Tue, 19 Jan 2016 12:52:04 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 160119-0, 2016-01-19), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016-01-19 12:22, Linus Torvalds wrote: > On Tue, Jan 19, 2016 at 2:30 AM, Ingo Molnar wrote: >> >> >> So it should be something like: >> >> config GENERIC_BOOTABLE_CONFIG >> bool "Enable kernel options that are needed to boot typical Linux distributions" >> default y >> ... >> >> (I removed the 'SANE' naming as disabling this option is obviously not 'insane'.) > > I think we should just make it distro-specific rather than claiming it > is generic (and inevitably failing). > > So we could have a config option for SYSTEMD, which selects stuff > systemd wants, and then distros that use systemd can select that etc. > > It shouldn't be about just bootability either. Some of the networking > options end up being security-critical (ie your firewall might not > work if you don't have the right options enabled, leaving you wide > open after you boot). It might be worth looking at Gentoo's kernel patches, they've had one for a while now (I think roughly a year and a half) that does pretty much this, you get options for each of their officially supported init systems (OpenRC, and SystemD, although the systemd option is not anywhere near as complete as what was proposed here), one for portage (which needs some specific namespace stuff for sandboxing builds), and I think one for udev. Theirs however uses depends instead of selects, but I think that fits a bit better (If I tell the config to make sure I can boot using a particular init system, I expect it to not let me change things that would prevent me from booting using that init system).