Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754219AbXKRTxn (ORCPT ); Sun, 18 Nov 2007 14:53:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752013AbXKRTxg (ORCPT ); Sun, 18 Nov 2007 14:53:36 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:61659 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbXKRTxf (ORCPT ); Sun, 18 Nov 2007 14:53:35 -0500 From: Bodo Eggert <7eggert@gmx.de> Subject: Re: [PATCH][retry-2] init: Introduce rootdir bootparm to select which dir to sys_chroot To: Al Boldi , linux-kernel@vger.kernel.org, hpa@zytor.com, akpm@linux-foundation.org Reply-To: 7eggert@gmx.de Date: Sun, 18 Nov 2007 20:53:14 +0100 References: <9qVOO-4ZK-13@gated-at.bofh.it> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-Id: X-be10.7eggert.dyndns.org-MailScanner-Information: See www.mailscanner.info for information X-be10.7eggert.dyndns.org-MailScanner: Found to be clean X-be10.7eggert.dyndns.org-MailScanner-From: 7eggert@gmx.de X-Provags-ID: V01U2FsdGVkX19Val7cXgpoNJCaCNBiLJK59h0k3gLpxRuTvAf HzU/mjq+HTRIiDmaAdktZDsIRZ1FRbWiiCWiGnYY9QhBc5SR2S 5NRdCaJbKhT9CDn7GQAlQ== Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 20 Al Boldi wrote: > Second try; this time with a doc-update, and the ability to remount normally. > > Tested against 2.6.23. > > --- > > This patch introduces a rootdir kernel boot parameter, which specifies the > path to the kernel sys_chroot boot dir. > > This is useful for systems that have more than one distribution installed on > the same fs/partition. 1) This is useful for booting a rescue or test system, too. In those cases, you might want to have the old root moved somewhere. (Always "$rootdir/oldroot"? Additional parameter? I'm not sure ...) 2) You use a static buffer, but you don't check for bad return values of strlcat(). - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/