public inbox for gentoo-dev@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-dev] udev and /usr
  @ 2011-09-20  2:50 99%                                   ` Zac Medico
  0 siblings, 0 replies; 1+ results
From: Zac Medico @ 2011-09-20  2:50 UTC (permalink / raw
  To: gentoo-dev

On Mon, Sep 19, 2011 at 7:08 PM, Joshua Kinard <kumba@gentoo.org> 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



^ 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 --
2011-09-15 14:33     [gentoo-dev] udev and /usr Joost Roeleveld
2011-09-15 19:31     ` Luca Barbato
2011-09-15 20:33       ` Joost Roeleveld
2011-09-18  5:43         ` Luca Barbato
2011-09-18 12:38           ` Rich Freeman
2011-09-18 12:49             ` Michał Górny
2011-09-18 12:59               ` Nirbheek Chauhan
2011-09-18 14:27                 ` Jorge Manuel B. S. Vicetto
2011-09-18 17:26                   ` Nirbheek Chauhan
2011-09-19  8:15                     ` Joshua Kinard
2011-09-19  8:33                       ` Michał Górny
2011-09-19  8:57                         ` Joshua Kinard
2011-09-19  9:10                           ` Michał Górny
2011-09-19 10:37                             ` Joshua Kinard
2011-09-19 11:17                               ` Arun Raghavan
2011-09-19 23:19                                 ` Joshua Kinard
2011-09-20  0:29                                   ` Rich Freeman
2011-09-20  2:08                                     ` Joshua Kinard
2011-09-20  2:50 99%                                   ` Zac Medico

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