From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757519Ab3EJRi1 (ORCPT ); Fri, 10 May 2013 13:38:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24852 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756795Ab3EJRiZ (ORCPT ); Fri, 10 May 2013 13:38:25 -0400 Date: Fri, 10 May 2013 19:35:11 +0200 From: Oleg Nesterov To: Lucas De Marchi Cc: lkml , Andrew Morton Subject: Re: [PATCH 3/3] init/Kconfig: Add option to set modprobe command Message-ID: <20130510173511.GA28490@redhat.com> References: <1368159316-31744-1-git-send-email-lucas.de.marchi@gmail.com> <1368159316-31744-3-git-send-email-lucas.de.marchi@gmail.com> <20130510125826.GA553@redhat.com> <20130510153638.GA8179@redhat.com> <20130510171054.GA27479@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130510171054.GA27479@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/10, Oleg Nesterov wrote: > > On 05/10, Lucas De Marchi wrote: > > > > but I think it's a good tradeoff and covers other use cases as you > > pointed out as well. > > OK, good. Yes, perhaps this makes sense anyway but... > > Ok. I'll give it a try. > > Please wait a bit, I'll send v2. See below. Cough, wait ;) Why do we need theese changes ???? > > > -char modprobe_path[KMOD_PATH_LEN] = "/sbin/modprobe"; > > > +char modprobe_path[KMOD_PATH_LEN] = "/sbin/modprobe -q --"; > > No. This is incompatible change, we shouldn't do this. Exactly. This can break a distro which writes to sys/kernel/modprobe. And if we do not do this, you can simply make a single trivial patch which does - char modprobe_path[KMOD_PATH_LEN] = "/sbin/modprobe"; + char modprobe_path[KMOD_PATH_LEN] = CONFIG_DEFAULT_MODULE_LOAD_BIN; that it all. (or perhaps a kernel parameter makes more sense). Yes, this doesn't allow to pass the additional arguments, but is it that important? Oleg.