All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: PID of init != 1 when initrd with pivot_root
Date: 31 May 2001 21:11:14 -0700	[thread overview]
Message-ID: <9f74l2$1i4$1@cesium.transmeta.com> (raw)
In-Reply-To: <20010601040627.A1335@ivan.doma>

Followup to:  <20010601040627.A1335@ivan.doma>
By author:    Ivan <pivo@pobox.sk>
In newsgroup: linux.dev.kernel
>
> Well, I upgraded and found pivot_root and the problem is that how do I make init
> run with PID 1. My linuxrc gets PID 7.
> 
>     1 ?        00:03:05 swapper
>     2 ?        00:00:00 keventd
>     3 ?        00:00:00 kswapd
>     4 ?        00:00:00 kreclaimd
>     5 ?        00:00:00 bdflush
>     6 ?        00:00:00 kupdated
>     7 ?        00:00:00 linuxrc
> 
> init doesn't like running with any other PID than 1. I could probably revert to
> the not so old way of doing things and exit linuxrc and let the kernel change
> root. But then I wouldn't be able to mount root over samba :-(. ( not that I
> have any samba shares :-)
> 

This is this way for backwards bug compatibility.  Use the following
command line options to make it behave properly:

	ram=/dev/ram0 init=/linuxrc

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

  reply	other threads:[~2001-06-01  4:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-01  2:06 PID of init != 1 when initrd with pivot_root Ivan
2001-06-01  4:11 ` H. Peter Anvin [this message]
2001-06-02 20:02 ` Ivan
2001-06-05 15:56   ` W. Michael Petullo
2001-06-05 19:36     ` Ivan Vadovic
2001-06-05 19:45     ` Kai Germaschewski

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='9f74l2$1i4$1@cesium.transmeta.com' \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.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.