All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a
@ 2021-11-16 10:17 bugzilla
  2021-11-20 11:29 ` [Buildroot] [Bug 14351] " bugzilla
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla @ 2021-11-16 10:17 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14351

            Bug ID: 14351
           Summary: needs to mount sysfs before mount -a
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: stsp2@yandex.ru
                CC: buildroot@uclibc.org
  Target Milestone: ---

Currently inittab does this:
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mkdir -p /dev/pts /dev/shm
::sysinit:/bin/mount -a

But before "mount -a" can be used,
you also need to do
mount -t sysfs sysfs /sys
Just mounting proc is not enough,
or UUIDs in fstab will not work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [Bug 14351] needs to mount sysfs before mount -a
  2021-11-16 10:17 [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a bugzilla
@ 2021-11-20 11:29 ` bugzilla
  2021-11-21 10:34 ` bugzilla
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla @ 2021-11-20 11:29 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14351

--- Comment #1 from stsp <stsp2@yandex.ru> ---
This was fixed in util-linux:
https://github.com/util-linux/util-linux/issues/1492
Please consider updating, or adding
an explicit /sys mount before "mount -a".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [Bug 14351] needs to mount sysfs before mount -a
  2021-11-16 10:17 [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a bugzilla
  2021-11-20 11:29 ` [Buildroot] [Bug 14351] " bugzilla
@ 2021-11-21 10:34 ` bugzilla
  2021-11-21 11:08 ` bugzilla
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla @ 2021-11-21 10:34 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14351

--- Comment #2 from Fabrice Fontaine <fontaine.fabrice@gmail.com> ---
Can you confirm that the following patch fix your issue:
https://patchwork.ozlabs.org/project/buildroot/patch/20211121094254.3425966-1-fontaine.fabrice@gmail.com/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [Bug 14351] needs to mount sysfs before mount -a
  2021-11-16 10:17 [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a bugzilla
  2021-11-20 11:29 ` [Buildroot] [Bug 14351] " bugzilla
  2021-11-21 10:34 ` bugzilla
@ 2021-11-21 11:08 ` bugzilla
  2021-11-21 17:52 ` bugzilla
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla @ 2021-11-21 11:08 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14351

--- Comment #3 from stsp <stsp2@yandex.ru> ---
(In reply to Fabrice Fontaine from comment #2)

Applying 0002-libblkid-don-t-mark-cache-as-probed-if-sys-not-available.patch
using patch: 
patching file libblkid/src/devname.c
Hunk #1 succeeded at 456 (offset 27 lines).
Hunk #2 succeeded at 562 with fuzz 1 (offset 27 lines).
Hunk #3 succeeded at 583 (offset 29 lines).
Hunk #4 succeeded at 608 (offset 29 lines).
Hunk #5 succeeded at 626 (offset 29 lines).

... is what I see when rebuilding util-linux.
I would rather suggest to update
entire util-linux from git, or, better yet,
just mount /sys by hands, the same
way you already do for /proc.

But other than that - yes, the patched
buildroot works as expected, thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [Bug 14351] needs to mount sysfs before mount -a
  2021-11-16 10:17 [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a bugzilla
                   ` (2 preceding siblings ...)
  2021-11-21 11:08 ` bugzilla
@ 2021-11-21 17:52 ` bugzilla
  2021-12-05 15:41 ` bugzilla
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla @ 2021-11-21 17:52 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14351

--- Comment #4 from Fabrice Fontaine <fontaine.fabrice@gmail.com> ---
Thanks for confirming that the patch works.

We can't bump util-linux as we're too close to the release of 2021.11. Indeed,
a bump to the latest git commit could add its own build or runtime issues.

Mounting /sys does not seem to be an option for 2021.11 either, see initial
comments here:
https://patchwork.ozlabs.org/project/buildroot/patch/20211120222857.3110528-1-fontaine.fabrice@gmail.com/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [Bug 14351] needs to mount sysfs before mount -a
  2021-11-16 10:17 [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a bugzilla
                   ` (3 preceding siblings ...)
  2021-11-21 17:52 ` bugzilla
@ 2021-12-05 15:41 ` bugzilla
  2021-12-12 22:52 ` bugzilla
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla @ 2021-12-05 15:41 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14351

Arnout Vandecappelle <arnout@mind.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Arnout Vandecappelle <arnout@mind.be> ---
Fixed by https://git.buildroot.org/buildroot/commit/?id=2f50686401

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [Bug 14351] needs to mount sysfs before mount -a
  2021-11-16 10:17 [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a bugzilla
                   ` (4 preceding siblings ...)
  2021-12-05 15:41 ` bugzilla
@ 2021-12-12 22:52 ` bugzilla
  2021-12-12 22:59 ` bugzilla
  2021-12-13 10:57 ` bugzilla
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla @ 2021-12-12 22:52 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14351

--- Comment #6 from Peter Korsgaard <jacmet@uclibc.org> ---
(In reply to stsp from comment #1)

Do you know if this is a regression in 2.37.x? We use 2.36.2 on the 2021.02.x
branch, and the patch doesn't directly apply there.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [Bug 14351] needs to mount sysfs before mount -a
  2021-11-16 10:17 [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a bugzilla
                   ` (5 preceding siblings ...)
  2021-12-12 22:52 ` bugzilla
@ 2021-12-12 22:59 ` bugzilla
  2021-12-13 10:57 ` bugzilla
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla @ 2021-12-12 22:59 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14351

--- Comment #7 from stsp <stsp2@yandex.ru> ---
(In reply to Peter Korsgaard from comment #6)

I am quite sure it is a
regression. I hit it only
after the buildroot update
I did in my project:

diff --git a/buildroot b/buildroot
index b928074..76c7fed 160000
--- a/buildroot
+++ b/buildroot
@@ -1 +1 @@
-Subproject commit b928074e2d83f5b873bf1ba381b212dfad9bf207
+Subproject commit 76c7fed85f7a822663cf0c8828e7d282198d0803


Unfortunately this is all I know.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [Bug 14351] needs to mount sysfs before mount -a
  2021-11-16 10:17 [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a bugzilla
                   ` (6 preceding siblings ...)
  2021-12-12 22:59 ` bugzilla
@ 2021-12-13 10:57 ` bugzilla
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla @ 2021-12-13 10:57 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14351

--- Comment #8 from Peter Korsgaard <jacmet@uclibc.org> ---
(In reply to stsp from comment #7)
Ok, thanks - then it most likely came from:

commit 27a46793b1a0c6c13c00b07d07bd5743e2c9c7b6
Author: Adam Duskett <aduskett@gmail.com>
Date:   Thu Oct 14 15:58:39 2021 -0700

    package/util-linux: bump to version 2.37.2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-12-13 10:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 10:17 [Buildroot] [Bug 14351] New: needs to mount sysfs before mount -a bugzilla
2021-11-20 11:29 ` [Buildroot] [Bug 14351] " bugzilla
2021-11-21 10:34 ` bugzilla
2021-11-21 11:08 ` bugzilla
2021-11-21 17:52 ` bugzilla
2021-12-05 15:41 ` bugzilla
2021-12-12 22:52 ` bugzilla
2021-12-12 22:59 ` bugzilla
2021-12-13 10:57 ` bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.