[PXE + NFS-Root] No Permissions?!



Hi,
I just got a bunch of more or less old laptops with no hardware at all
but display and motherboard.
So I thought, that's the perfect excuse to see how this
network-boot-thing works.
After a few days now, I got a nice Kernel which is successfully loaded
over network, the nfs-root-directory is mounted (which is a
debootstrap-ped Debian Sarge directory) and booting sequence is
starting too.

Problem is: Some daemons or filescripts seem to have no permissions to
write on certain files (or devices for that matter).

== SNIP ==
Cleaning /tmprm: cannot remove `./fileZFvUAC: Operation not permitted
....
/etc/init.d/rcS: lime 97: /var/run/.clean: Permission denied
(imagine some more of that kind _here_)
== SNIP ==

This also makes syslogd, klogd, inetd, etc. pp. not start either.

Thing is, I exported that directory with permissions to write and I
mounted it in the parameter with `root=/dev/nfs rw', so it should be
mounted read/write, too. There's no way I could check that, for I
cannot even get to the login shell, because init says:
== SNIP ==
INIT: Id "1" respawning too fast: disabled for 5 minutes
....
INIT: Id "6" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
== SNIP ==

debootstrap of course made all the default device nodes in /dev of the
nfs-root-directory. I don't know if that was a good idea, but I also
don't know any alternative - and udev won't start either.
I'm really out of ideas here. Begging for help

Regards,
Alexander Surma

.



Relevant Pages

  • Re: [PATCH] driver-core: devtmpfs - driver core maintained /dev tmpfs
    ... would do horrible things with device nodes. ... You also want userspace to have control over device ... nodes, and possibly mangle them, regardless what the kernel exports, ... Simple permissions would be possible without too much hassle, ...
    (Linux-Kernel)
  • Re: [PATCH v2 resend] vfs: new O_NODE open flag
    ... A rather disgusting patch that would be. ... permissions on follow_link makes little to no sense. ... The only really weird case Alan spotted is device nodes, ... actual device registered to a major/minor pair changes over time, ...
    (Linux-Kernel)
  • Re: Where/when is /dev populated?
    ... get the permissions I want on some device nodes in /dev. ... I cannot figure out where the device nodes are created... ... For tty the udev rule could look like this: ... So ttyS0 gets other settings than all other ttyS devices) ...
    (comp.os.linux.embedded)
  • Re: [patch 05/10] add "permit user mounts in new namespace" clone flag
    ... cannot 'create' device nodes with 'unfortunate' ... All unprivileged mounts have "nosuid,nodev" added to their options. ...
    (Linux-Kernel)
  • Re: Where/when is /dev populated?
    ... John wrote: ... get the permissions I want on some device nodes in /dev. ... can change those in an rc script, it would be nice to get the ... I cannot figure out where the device nodes are created... ...
    (comp.os.linux.embedded)