Skip to content

Allow disabling copying of udev rules #1062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zaninime
Copy link

@zaninime zaninime commented Jun 9, 2025

Currently, the builder builds the whole system.build.etc, which is a rather enormous closure in some configurations. Also, it requires the build of all packages declared in systemPackages for the build architecture, which is in many cases unneeded, and can fail if the packages are platform-specific.

Currently, the builder builds the whole `system.build.etc`, which is a
rather enormous closure in some configurations. Also, it requires the
build of all packages declared in `systemPackages` for the build
architecture, which is in many cases unneeded, and can fail if the
packages are platform-specific.
@Lassulus
Copy link
Collaborator

We usually need the udev rules to create the /dev/disk/by-partlabel symlinks. So without them disko falls apart a bit, so I'm curious what your usecase is and why you don't need them :)

maybe a better approach would be, to just copy the udev rules we need instead of all of them?

@zaninime
Copy link
Author

My usecase was building an image for Raspberry Pi, and with this (and the other PRs I opened) I was successful. :)

I do see in my fstab:

/dev/disk/by-partlabel/system /system ext4 x-initrd.mount,noatime 0 2

where system is one of the partitions managed by disko, so this has to be working also without udev rules. I omitted the other partitions for brevity.

In my case particularly there's some software that is not available in caches and I do not wish to rebuild it in the cross configuration just for the sake of building the image. It has no impact on udev rules. One example: https://github.com/raspberrypi/rpicam-apps depends on a custom ffmpeg, qt, ... and eventually even fails to compile in the cross config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants