Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] /dev nodes files
@ 2009-06-07 18:48 Daniel Mack
  2009-06-07 18:53 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Mack @ 2009-06-07 18:48 UTC (permalink / raw)
  To: buildroot

This has been discussed before, but I don't know if there was any
result, so I'm asking again.

After each build, the ixnodes in project_build_arm/uclibc/root/dev are
regular files rather than inodes, which prevents users from exporting
that directory directly as NFS root. Most people run custom scripts to
fix that, but I wonder whether there is any change to get that fixed in
BR2 directly.

The problem is that mknod can't create the nodes when not run as root,
and fakeroot doesn't help much in this case. Would it be an option to

 a) move the invocation of makedevs from target/*/*mk to some higher
    level. Actually, all fs deployment targets do the same thing, and
    that could be simplified.
 b) Let users choose whether to use 'fakeroot' or 'sudo' to create the
    inodes. The latter would need some augmented system priviledges, but
    as an option, that shouldn't harm.

Any oppinion about such an approach?

Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] /dev nodes files
  2009-06-07 18:48 [Buildroot] /dev nodes files Daniel Mack
@ 2009-06-07 18:53 ` Peter Korsgaard
  2009-06-08 11:41   ` Daniel Mack
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2009-06-07 18:53 UTC (permalink / raw)
  To: buildroot

>>>>> "Daniel" == Daniel Mack <daniel@caiaq.de> writes:

 Daniel> This has been discussed before, but I don't know if there was any
 Daniel> result, so I'm asking again.

 Daniel> After each build, the ixnodes in project_build_arm/uclibc/root/dev are
 Daniel> regular files rather than inodes, which prevents users from exporting
 Daniel> that directory directly as NFS root. Most people run custom scripts to
 Daniel> fix that, but I wonder whether there is any change to get that fixed in
 Daniel> BR2 directly.

Ehh, that's on purpose (E.G. so you don't need root permissions to
build). Just select the tarball target and extract it on your nfs
server.

 Daniel> Any oppinion about such an approach?

What would this buy us that the tarball target doesn't give?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] /dev nodes files
  2009-06-07 18:53 ` Peter Korsgaard
@ 2009-06-08 11:41   ` Daniel Mack
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Mack @ 2009-06-08 11:41 UTC (permalink / raw)
  To: buildroot

On Sun, Jun 07, 2009 at 08:53:46PM +0200, Peter Korsgaard wrote:
>  Daniel> After each build, the ixnodes in project_build_arm/uclibc/root/dev are
>  Daniel> regular files rather than inodes, which prevents users from exporting
>  Daniel> that directory directly as NFS root. Most people run custom scripts to
>  Daniel> fix that, but I wonder whether there is any change to get that fixed in
>  Daniel> BR2 directly.
> 
> Ehh, that's on purpose (E.G. so you don't need root permissions to
> build). Just select the tarball target and extract it on your nfs
> server.
> 
>  Daniel> Any oppinion about such an approach?
> 
> What would this buy us that the tarball target doesn't give?

Ok, understood. Thanks :)

Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-08 11:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-07 18:48 [Buildroot] /dev nodes files Daniel Mack
2009-06-07 18:53 ` Peter Korsgaard
2009-06-08 11:41   ` Daniel Mack

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