Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 18 Nov 2000 06:32:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 18 Nov 2000 06:32:48 -0500 Received: from kauha.saunalahti.fi ([195.197.53.227]:30716 "EHLO kauha.saunalahti.fi") by vger.kernel.org with ESMTP id ; Sat, 18 Nov 2000 06:32:35 -0500 Date: Sat, 18 Nov 2000 13:46:40 +0200 (EET) From: Kaj-Michael Lang To: Linux kernel list Subject: [PATCH] swap= kernel commandline Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="281236188-1900795059-974548000=:6391" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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. --281236188-1900795059-974548000=:6391 Content-Type: TEXT/PLAIN; charset=US-ASCII This patch adds a swap kernel commandline option, so that you can add a swap partition before init starts running on a low-memory machine. The patch is against 2.4.0-test11-pre7 This is my first try at a kernel patch so... I hope someone finds it usefull. --281236188-1900795059-974548000=:6391 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="swap.cmdline-2.4.0-test11-pre7.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="swap.cmdline-2.4.0-test11-pre7.patch" LS0tIGluaXQvbWFpbi5jLTIuNC4wdGVzdDExLXByZTcJU2F0IE5vdiAxOCAx MjozMDo1OSAyMDAwDQorKysgaW5pdC9tYWluLmMJU2F0IE5vdiAxOCAxMjoz NTowOCAyMDAwDQpAQCAtMTMxLDYgKzEzMSw3IEBADQogaW50IHJvb3RfbW91 bnRmbGFncyA9IE1TX1JET05MWTsNCiBjaGFyICpleGVjdXRlX2NvbW1hbmQ7 DQogY2hhciByb290X2RldmljZV9uYW1lWzY0XTsNCitjaGFyIHN3YXBfZGV2 aWNlX25hbWVbNjRdOw0KIA0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aygiU3dhcG9uIGZhaWxl ZCFcbiIpOw0KKwkJfQ0KKwl9DQorIA0KICNpZmRlZiBDT05GSUdfQkxLX0RF Vl9JTklUUkQNCiAJcm9vdF9tb3VudGZsYWdzID0gcmVhbF9yb290X21vdW50 ZmxhZ3M7DQogCWlmIChtb3VudF9pbml0cmQgJiYgUk9PVF9ERVYgIT0gcmVh bF9yb290X2Rldg0KQEAgLTc4MCwzICs4MDksNCBAQA0KIAlleGVjdmUoIi9i aW4vc2giLGFyZ3ZfaW5pdCxlbnZwX2luaXQpOw0KIAlwYW5pYygiTm8gaW5p dCBmb3VuZC4gIFRyeSBwYXNzaW5nIGluaXQ9IG9wdGlvbiB0byBrZXJuZWwu Iik7DQogfQ0KKw0K --281236188-1900795059-974548000=:6391-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/