* [PATCH] strip "init=" from INIT
@ 2009-03-04 12:48 Harald Hoyer
[not found] ` <49AE78AA.8070401-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Harald Hoyer @ 2009-03-04 12:48 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
[-- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] strip "init=" from INIT
[not found] ` <49AE78AA.8070401-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-03-04 22:54 ` Victor Lowther
0 siblings, 0 replies; 2+ messages in thread
From: Victor Lowther @ 2009-03-04 22:54 UTC (permalink / raw)
To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
On Wed, 2009-03-04 at 13:48 +0100, Harald Hoyer wrote:
> plain text document attachment (0001-strip-init-from-INIT.patch)
> 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; }
Fixed in the hookify-finding-root patches that I should repost to the
list. :)
--
Victor Lowther
RHCE# 805008539634727
LPIC-2# LPI000140019
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-04 22:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-04 12:48 [PATCH] strip "init=" from INIT Harald Hoyer
[not found] ` <49AE78AA.8070401-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-03-04 22:54 ` Victor Lowther
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.