diff mbox series

[1/1] package/busybox: mount /sys

Message ID 20211120222857.3110528-1-fontaine.fabrice@gmail.com
State Not Applicable
Headers show
Series [1/1] package/busybox: mount /sys | expand

Commit Message

Fabrice Fontaine Nov. 20, 2021, 10:28 p.m. UTC
Fixes:
 - https://bugs.buildroot.org/show_bug.cgi?id=14351

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/busybox/inittab | 1 +
 1 file changed, 1 insertion(+)

Comments

Yann E. MORIN Nov. 21, 2021, 7:22 a.m. UTC | #1
Fabrice, All,

On 2021-11-20 23:28 +0100, Fabrice Fontaine spake thusly:
> Fixes:
>  - https://bugs.buildroot.org/show_bug.cgi?id=14351
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/busybox/inittab | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/busybox/inittab b/package/busybox/inittab
> index ff1725c775..22e63d1603 100644
> --- a/package/busybox/inittab
> +++ b/package/busybox/inittab

You missed package/sysvinit/inittab

But we already have /sys in package/skeleton-init-sysv/skeleton/etc/fstab
so how is going to play together?

Adn finalyl, the 1-cent question (I can't afford the one-million dollar
question): how does thing happen with systemd? With openrc?

Regards,
Yann E. MORIN.

> @@ -15,6 +15,7 @@
>  
>  # Startup the system
>  ::sysinit:/bin/mount -t proc proc /proc
> +::sysinit:/bin/mount -t sysfs sysfs /sys
>  ::sysinit:/bin/mount -o remount,rw /
>  ::sysinit:/bin/mkdir -p /dev/pts /dev/shm
>  ::sysinit:/bin/mount -a
> -- 
> 2.33.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
Fabrice Fontaine Nov. 21, 2021, 9:28 a.m. UTC | #2
Yann,

Le dim. 21 nov. 2021 à 08:22, Yann E. MORIN <yann.morin.1998@free.fr> a écrit :
>
> Fabrice, All,
>
> On 2021-11-20 23:28 +0100, Fabrice Fontaine spake thusly:
> > Fixes:
> >  - https://bugs.buildroot.org/show_bug.cgi?id=14351
> >
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > ---
> >  package/busybox/inittab | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/package/busybox/inittab b/package/busybox/inittab
> > index ff1725c775..22e63d1603 100644
> > --- a/package/busybox/inittab
> > +++ b/package/busybox/inittab
>
> You missed package/sysvinit/inittab
>
> But we already have /sys in package/skeleton-init-sysv/skeleton/etc/fstab
> so how is going to play together?
>
> Adn finalyl, the 1-cent question (I can't afford the one-million dollar
> question): how does thing happen with systemd? With openrc?
Indeed, I'll backport the two upstream patches on utl-linux instead of
mounting /sys.
>
> Regards,
> Yann E. MORIN.
>
> > @@ -15,6 +15,7 @@
> >
> >  # Startup the system
> >  ::sysinit:/bin/mount -t proc proc /proc
> > +::sysinit:/bin/mount -t sysfs sysfs /sys
> >  ::sysinit:/bin/mount -o remount,rw /
> >  ::sysinit:/bin/mkdir -p /dev/pts /dev/shm
> >  ::sysinit:/bin/mount -a
> > --
> > 2.33.0
> >
> > _______________________________________________
> > buildroot mailing list
> > buildroot@buildroot.org
> > https://lists.buildroot.org/mailman/listinfo/buildroot
>
> --
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'
Best Regards,

Fabrice
diff mbox series

Patch

diff --git a/package/busybox/inittab b/package/busybox/inittab
index ff1725c775..22e63d1603 100644
--- a/package/busybox/inittab
+++ b/package/busybox/inittab
@@ -15,6 +15,7 @@ 
 
 # Startup the system
 ::sysinit:/bin/mount -t proc proc /proc
+::sysinit:/bin/mount -t sysfs sysfs /sys
 ::sysinit:/bin/mount -o remount,rw /
 ::sysinit:/bin/mkdir -p /dev/pts /dev/shm
 ::sysinit:/bin/mount -a