From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754688AbaJUEPd (ORCPT ); Tue, 21 Oct 2014 00:15:33 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:49168 "EHLO mail-ob0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751286AbaJUEPb (ORCPT ); Tue, 21 Oct 2014 00:15:31 -0400 Message-ID: <5445DDE9.3020601@landley.net> Date: Mon, 20 Oct 2014 23:15:37 -0500 From: Rob Landley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Andy Lutomirski CC: Andrew Morton , Josh Triplett , Frank Rowand , "linux-kernel@vger.kernel.org" , Chuck Ebbert , Randy Dunlap , Shuah Khan Subject: Re: [PATCH] init: Remove CONFIG_INIT_FALLBACK References: <20141020144448.59e2e067d632c70353296e56@linux-foundation.org> <5445D6F7.1000805@landley.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/20/14 23:02, Andy Lutomirski wrote: > On Mon, Oct 20, 2014 at 8:45 PM, Rob Landley wrote: >> On 10/20/14 17:04, Andy Lutomirski wrote: >>> --- a/init/main.c >>> +++ b/init/main.c >>> @@ -960,13 +960,8 @@ static int __ref kernel_init(void *unused) >>> ret = run_init_process(execute_command); >>> if (!ret) >>> return 0; >>> -#ifndef CONFIG_INIT_FALLBACK >>> panic("Requested init %s failed (error %d).", >>> execute_command, ret); >>> -#else >>> - pr_err("Failed to execute %s (error %d). Attempting defaults...\n", >>> - execute_command, ret); >>> -#endif >>> } >>> if (!try_to_run_init_process("/sbin/init") || >>> !try_to_run_init_process("/etc/init") || >>> >> >> Would you like to remove the try_to_run_init_process() stack of random >> hardwired names that we can never reach if we panic, or do you just want >> to remove the error message? >> > > I'm confused. That code is reachable if there's no initramfs and > init= is not specified. Ah, I thought the purpose of the original patch was to make init= required, but if not then fine. /etc/init is still crazy, though. Rob