Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 27 Jun 2002 15:14:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 27 Jun 2002 15:14:20 -0400 Received: from chaos.analogic.com ([204.178.40.224]:59784 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id ; Thu, 27 Jun 2002 15:14:19 -0400 Date: Thu, 27 Jun 2002 15:19:10 -0400 (EDT) From: "Richard B. Johnson" Reply-To: root@chaos.analogic.com To: David Schwartz cc: Oliver.Neukum@lrz.uni-muenchen.de, Gregoryg@ParadigmGeo.com, Linux Kernel Subject: Re: Multiple profiles In-Reply-To: <20020627185355.AAA28049@shell.webmaster.com@whenever> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="1678434306-1678716291-1025205550=:9280" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7147 Lines: 138 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --1678434306-1678716291-1025205550=:9280 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 27 Jun 2002, David Schwartz wrote: > > On Thu, 27 Jun 2002 14:22:07 +0200 (MET DST), > Oliver.Neukum@lrz.uni-muenchen.de wrote: > > >On Thu, 27 Jun 2002, David Schwartz wrote: > > > >> There is no way to create multiple profiles on Linux. But there may be > >> a way > > >Actually there is. We call them runlevels. init seems to be pretty > >standard on Linux systems. > > True, though runlevels don't allow you to change the kernel you're > using, > its command line, or the initrd. In addition, many distributions' preferred > means of creating profiles is not by means of runlevels. > You can boot different 'profiles' like the attached script shows. With `initrd`, you can even query the user after initial boot, about what 'profile' you might want. It can then set up whatever you want, then in a final heave, do `exec /sbin/init auto` and you are running the startup files (the profile) that you specified. Cheers, Dick Johnson Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips). Windows-2000/Professional isn't. --1678434306-1678716291-1025205550=:9280 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="make_ramdisk.sh" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: IyEvYmluL2Jhc2gNCiMNCiMJVGhpcyBpbnN0YWxscyB0aGUga2VybmVsIG9u IGEgc3lzdGVtIHRoYXQgcmVxdWlyZXMgYW4gaW5pdGlhbA0KIwlSQU0gRGlz ayBhbmQgd2l0aCBhbiBpbml0aWFsIFNDU0kgZHJpdmVyLg0KIw0KDQpleHBv cnQgVkVSPSQxDQpSQU1ESVNLX0RFVklDRT0vdG1wL1JBTS5EQVRBDQpSQU1E SVNLX01PVU5UPS90bXAvUmFtZGlzaw0KRElTS1NJWkU9MTgwMA0KU1lTPS91 c3Ivc3JjL2xpbnV4LSR7VkVSfS9hcmNoL2kzODYvYm9vdC9iekltYWdlDQpN QVA9L3Vzci9zcmMvbGludXgtJHtWRVJ9L1N5c3RlbS5tYXANCmlmIFsgIiQx IiA9ICIiIF0gOw0KICAgdGhlbg0KICAgICAgIGVjaG8gIlVzYWdlOiINCiAg ICAgICBlY2hvICJtYWtlX3JhbWRpc2sgPHZlcnNpb24+Ig0KICAgICAgIGV4 aXQgMQ0KZmkNCmlmIFsgISAtZiAke1NZU30gXSA7DQogICB0aGVuDQogICAg ZWNobyAiRmlsZSBub3QgZm91bmQsICR7U1lTfSINCiAgICBleGl0IDENCmZp DQppZiBbICEgLWYgJHtNQVB9IF0gOw0KICAgdGhlbg0KICAgIGVjaG8gIkZp bGUgbm90IGZvdW5kLCAke01BUH0iDQogICAgZXhpdCAxDQpmaQ0KaWYgISBk ZXBtb2QgLWEgJHtWRVJ9IDsNCiAgIHRoZW4NCiAgICAgIGVjaG8gIlRoaXMg d29uJ3Qgd29yayEgIFRoZXJlIGFyZSBzb21lIHVucmVzb2x2ZWQgc3ltYm9s cy4iDQogICAgICBleGl0IDENCmZpDQp1bW91bnQgL2luaXRyZCAyPi9kZXYv bnVsbA0KdW1vdW50ICR7UkFNRElTS19ER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Ym9vdCB2ZXJ5IHF1aWNrbHkNCnZnYSA9IG5v cm1hbAkjIGZvcmNlIHNhbmUgc3RhdGUNCg0KaW1hZ2UgPSAvYm9vdC92bWxp bnV6LSR7VkVSfQ0KICBpbml0cmQgPSAvYm9vdC9pbml0cmQtJHtWRVJ9DQog IHJvb3QgID0gY3VycmVudA0KICBsYWJlbCA9IG5ldyANCiAgYXBwZW5kID0g Im5taV93YXRjaGRvZz0wIg0KDQppbWFnZSA9IC9ib290L3ZtbGludXotJHtW RVJ9DQogIGluaXRyZCA9IC9ib290L2luaXRyZC0ke1ZFUn0NCiAgcm9vdCAg PSAvZGV2L3NjZDAgDQogIGxhYmVsID0gY2Ryb20gDQoNCmltYWdlID0gL3Zt bGludXoNCiByb290ID0gY3VycmVudA0KIGxhYmVsID0gbGludXgNCg0KaW1h Z2UgPSAvYm9vdC92bWxpbnV6LSR7VkVSfQ0KICBpbml0cmQgPSAvYm9vdC9p bml0cmQtJHtWRVJ9DQogIHJvb3QgID0gL2Rldi9zZGMzIA0KICBsYWJlbCA9 IG1haW50IA0KDQppbWFnZSA9IC9ib290L3ZtbGludXotJHtWRVJ9DQogIGlu aXRyZCA9IC9ib290L2luaXRyZC0ke1ZFUn0NCiAgcm9vdCAgPSAvZGV2L3Nk YzEgDQogIGxhYmVsID0gbWFpbnQtc3UNCiAgYXBwZW5kPSJpbml0PS9iaW4v YmFzaCIgDQoNCmltYWdlID0gL3ZtbGludXoub2xkDQogIHJvb3QgPSBjdXJy ZW50DQogIGxhYmVsID0gbGludXhfb2xkDQoNCm90aGVyID0gL2Rldi9zZGEx DQogIHRhYmxlID0gL2Rldi9zZGENCiAgbGFiZWwgPSBkb3MNCkVPRg0KDQo= --1678434306-1678716291-1025205550=:9280-- - 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/