[Buildroot] bash: /dev/fd/62: No such file or directory
Jörg Krause
joerg.krause at embedded.rocks
Sun Apr 1 09:45:20 UTC 2018
Hi,
On Fri, 2018-03-30 at 13:11 +0200, Peter Korsgaard wrote:
> > > > > > "Jörg" == Jörg Krause <joerg.krause at embedded.rocks> writes:
>
> Hi,
>
> >> Keep in mind that we still support a static /dev, so we should also add
> >> them to system/device_table_dev.txt and redirect errors to /dev/null so
> >> you don't get a bunch of warnings about these symlinks when booting with
> >> a static /dev.
>
> > I am trying to get this working. I managed to add the entries to
> > inittab for busybox and sysvinit
>
> Great!
>
> > but I am unsure how to add those symlinks to the static
> > /dev. makedevs does not support symbolic links.
>
> Heh, you are right. We can either:
>
> - Add a BASH_ROOTFS_PRE_CMD_HOOKS hook in bash.mk if static /dev is used
> to create these symlinks
>
> - Extend the makedevs code to also support symlinks
>
> - Completely ignore this issue for static /dev
>
> The first option is probably the easiest/nicest.
On second thought, bash might not be the only application using
/dev/fd. Maybe fs/common.mk is the better place?
There is one issue about /proc/kcore. It is not available on ARM
systems, and maybe others. Apparently, this feature is not much
appreciated [1], so I'm gonna skip this symlink.
[1] https://lwn.net/Articles/45315/
Jörg
More information about the buildroot
mailing list