login
Header Space

 
 

Re: [PATCH 2.6.24] chroot= as a new kernel parameter

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <devzero@...>
Cc: <ingo@...>, LKML <linux-kernel@...>
Date: Friday, March 7, 2008 - 6:32 pm

On Fri, 7 Mar 2008, devzero@web.de wrote:


Great, I was looking for something like this myself some time ago!


How about:

--- linux-2.6-git/Documentation/kernel-parameters.txt	2008-02-21 12:01:37.000000000 +0100
+++ linux-2.6-git/Documentation/kernel-parameters.txt.edited	2008-03-07 23:26:39.000000000 +0100
@@ -799,9 +799,12 @@ and is between 256 and 4096 characters.
  			See header of drivers/scsi/in2000.c.

  	init=		[KNL]
-			Format: <full_path>
+			Format: <full_path> <options>
  			Run specified binary instead of /sbin/init as init
-			process.
+			process. init= is able to take more than one option
+			allowing us to do:
+			init=/path/to/any/sbin/chroot /newroot /sbin/init
+			...and thus booting into /newroot.

  	initcall_debug	[KNL] Trace initcalls as they are executed.  Useful
  			for working out where the kernel is dying during

Thanks,
Christian.
-- 
BOFH excuse #116:

the real ttys became pseudo ttys and vice-versa.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2.6.24] chroot= as a new kernel parameter, Christian Kujau, (Fri Mar 7, 6:32 pm)
speck-geostationary