H
H
HighMan2021-08-13 13:07:15
linux
HighMan, 2021-08-13 13:07:15

How to solve problems with mounting devtmpfs?

Good time, colleagues!
The task was to create a firmware for a certain device based on Debian 10. Everything is assembled. Launched. Does not work.
/etc/fstab specifies mounting disks via /dev/disk/by-label/...
But there is no /dev/disk directory in the system
. It doesn't matter. There is bkid which gives out all the necessary information. All you need to do is parse and write symlinks.
Nonsense, in general. Raparsil prescribed. The beauty!
But doesn't work.
After starting /sbin/init everything disappears.

mount | grep '/dev'
devtmpfs on /dev type devtmpfs (rw,nosuid,size=239144k,nr_inodes=59786,mode=755)

Those. the system itself mounts devtmpfs there and, accordingly, nails my art.
I installed udev (although I didn't want to). I start it before /sbin/init and it fills /dev/disk by itself. Everything is great until /sbin/init. After its launch, the situation repeats itself. /dev/disk doesn't exist again and even udev disappears from the system.
Actually, don't care about udev. He doesn't need it.
It is necessary to somehow influence / sbin / init in order to insert my script that creates symlinks for disks before working out / etc / fstab.
Maybe I don't understand something.
The required disk /dev/sda is present in the system. Its partitions are visible in the form / dev / sda1 / dev / sda2
All they need is to register simlis in / dev / disk / by-label / so that / sbin / init would accept them

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2021-08-13
@jcmvbkbc

the system itself mounts devtmpfs there and, accordingly, nails my art.

So can disable the DEVTMPFS_MOUNT parameter in the kernel config?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question