Skip to contentSkip to conversation

Building systemd without udev

DISCUSSION Joel GUITTET 4 participants 4 messages Sep 12, 2024 – Sep 13, 2024

lore
Share & tools
lore
#0 lore raw

Hello,

I'm currently trying to reduce the size of the generated image as much as possible.
One thing I don't need is udev, but it is currently built by systemd and seems not very easy to remove throw PACKAGECONFIG.

Is it possible to remove udev dependency so that we don't integrate udev in the image ?

Joel

#1 lore raw

AFAIK udev is completely integrated into systemd, and cannot be removed.

If you're serious about size reduction, the "tiny" way is to remove systemd and use busybox mdev as device manager and busybox "init" as init process. You'll lose a lot of functionality, of course.

Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl

Please consider the environment before printing this e-mail

Quoted 14 lines · Joel GUITTET via lists.yoctoproject.org

Hello,
I'm currently trying to reduce the size of the generated image as much as possible.
One thing I don't need is udev, but it is currently built by systemd and seems not very easy to remove throw PACKAGECONFIG. Is it possible to remove udev dependency so that we don't integrate udev in the image ?
Joel

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63828): https://lists.yoctoproject.org/g/yocto/message/63828
Mute This Topic: https://lists.yoctoproject.org/mt/108409280/3618446
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
In reply to Mike Looijmans
Quoted 2 lines · Mike Looijmans via lists.yoctoproject.org

AFAIK udev is completely integrated into systemd, and cannot be removed.

udev is a separate package in the systemd recipe, so you could try changing the RDEPENDS to RRECOMMENDS and not installing udev.

Ross