Modifying init to create /dev/console ?
Terry Barnaby
terry1 at beam.ltd.uk
Wed Feb 28 09:23:22 UTC 2007
Luciano Miguel Ferreira Rocha wrote:
> On Tue, Feb 27, 2007 at 09:22:25AM +0000, Terry Barnaby wrote:
>> Hi,
>>
>> I am trying to create a basic Linux system based on Busybox and would
>> like the ability to create the root file system as a normal user and
>> without any /dev entries. The startup script would create the /dev
>> entries as needed.
>> However, init and other programs obviously require /dev/console (and
>> other /dev entries).
>
> Are you using initramfs? You can create cpios with special files,
> different owners and suid/sgid as normal user, using usr/gen_init_cpio.c
> in the Linux source tree.
>
Hi Luciano,
Yes, I am using initramfs and thanks for the info. I could use this for
the boot initrd, but the system then mounts its real root fs using a
read only NFS mount. I would prefer not to have a /dev/console in my NFS
mounted file system either ...
Cheers
Terry
More information about the busybox
mailing list