Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Zac Medico <zmedico@g.o>
Subject: Re: udev and /usr
Date: Mon, 19 Sep 2011 19:50:14 -0700
On Mon, Sep 19, 2011 at 7:08 PM, Joshua Kinard <kumba@g.o> wrote:
> That's what I take issue with -- the whims of a commercial enterprise
> ultimately deciding, at some possible, future point, what path we take.  In
> other words, those of us not running cluster farms shouldn't have to change
> things, even slightly (like using an initramfs if needed) for those that do.
>  Linux's greatest asset is its extreme configurability -- a single source
> tree can be compiled to run on super computers or cable boxes.

For what it's worth, I've got a simple alternative to the initramfs
approach, that may be handy for people like you. The idea is to enable
CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y in the kernel, pass
something like init=/sbin/linuxrc as a kernel parameter via the
bootloader, and have /sbin/linuxrc be a simple shell script that mounts
/proc, /sys, and /usr before calling 'exec /sbin/init'.

You can use whatever shell you want for /sbin/linuxrc, as long as it
doesn't have some kind of dependency on /usr. For example, if you want
your script to run using a really minimal shell with the fewest possible
dependencies, you can put '#!/sbin/busybox ash' in the shebang so that
it will use your statically linked busybox.

Something like this should do the trick in /sbin/linuxrc:

  #!/sbin/busybox ash
  mount -t proc proc /proc
  mount -t sysfs sysfs /sys
  mount /usr
  exec /sbin/init

-- 
Thanks,
Zac


References:
udev and /usr
-- Joost Roeleveld
Re: udev and /usr
-- Luca Barbato
Re: udev and /usr
-- Joost Roeleveld
Re: udev and /usr
-- Luca Barbato
Re: udev and /usr
-- Rich Freeman
Re: udev and /usr
-- Michał Górny
Re: udev and /usr
-- Nirbheek Chauhan
Re: udev and /usr
-- Jorge Manuel B. S. Vicetto
Re: udev and /usr
-- Nirbheek Chauhan
Re: udev and /usr
-- Joshua Kinard
Re: udev and /usr
-- Michał Górny
Re: udev and /usr
-- Joshua Kinard
Re: udev and /usr
-- Michał Górny
Re: udev and /usr
-- Joshua Kinard
Re: udev and /usr
-- Arun Raghavan
Re: udev and /usr
-- Joshua Kinard
Re: udev and /usr
-- Joshua Kinard
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: udev and /usr
Next by thread:
Re: udev and /usr
Previous by date:
Re: udev and /usr
Next by date:
Re: udev and /usr


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.