public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-embedded] busybox switch_root: not rootfs
  @ 2006-08-31 12:05 99% ` Jon Saints
  0 siblings, 0 replies; 1+ results
From: Jon Saints @ 2006-08-31 12:05 UTC (permalink / raw
  To: gentoo-embedded

Thanks for the tip.  I run from /init and things seem
to be working (although i get an nfs error now... this
is a different issue I think).

I also needed to put the command "exec" infront of my
switch_root command:

In other words, putting the following line in my /init
file seems to have solved the problem:

exec switch_root /tmp/nfsroot /sbin/init

Thanks,
Jon

--- Natanael Copa <natanael.copa@gmail.com> wrote:

> On Thu, 2006-08-31 at 00:52 -0700, Jon Saints wrote:
> > I am following the TinyGentoo install from the
> gentoo
> > wiki.  I am able to install my tinygentoo on my
> host
> > machine without trouble (uclibc + busybox).
> > 
> > When I try to switch my root initramfs to a new
> root
> > directory i have mounted by nfs i get an error.
> 
> how where do you do this?
> 
> > 
> > My command is:
> > > switch_root /tmp/nfsroot /sbin/init
> > 
> > The error is:
> > switch_root: not rootfs
> > 
> > Any ideas on how I might begin to debug this?
> 
> as mentioned in busybox mailing list, the process
> who executes
> switch_root needs to be pid=1.
> 
> It means you have to call it from your initramfs
> init script. I suspect
> that you process calling switch_root is not pid=1
> 
> --
> Natanael Copa
> 
> -- 
> gentoo-embedded@gentoo.org mailing list
> 
> 

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2006-08-31  8:27     [gentoo-embedded] busybox switch_root: not rootfs Natanael Copa
2006-08-31 12:05 99% ` Jon Saints

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox