From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] strip "init=" from INIT
Date: Wed, 04 Mar 2009 13:48:42 +0100 [thread overview]
Message-ID: <49AE78AA.8070401@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 0001-strip-init-from-INIT.patch --]
[-- Type: text/plain, Size: 736 bytes --]
From 5e043b9fd529b1cfb0358a69f263b84620ffbd1b Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Date: Wed, 4 Mar 2009 13:45:21 +0100
Subject: [PATCH] strip "init=" from INIT
---
init | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/init b/init
index 581c2b9..9605141 100755
--- a/init
+++ b/init
@@ -90,7 +90,7 @@ ln -s "$root" /dev/root
fstype="$(getarg rootfstype)" && fstype="-t ${fstype#rootfstype=}"
mount $fstype -o $rflags /dev/root $NEWROOT || emergency_shell
-INIT=$(getarg init)
+INIT=$(getarg init); INIT=${INIT#init=}
[ "$INIT" ] || {
for i in /sbin/init /etc/init /init /bin/sh; do
[ -x "$NEWROOT$i" ] && { INIT="$i"; break; }
--
1.6.0.6
next reply other threads:[~2009-03-04 12:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-04 12:48 Harald Hoyer [this message]
[not found] ` <49AE78AA.8070401-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-03-04 22:54 ` [PATCH] strip "init=" from INIT Victor Lowther
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49AE78AA.8070401@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.