-
Notifications
You must be signed in to change notification settings - Fork 32
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
Only run udevadm
if it exists
#36
Conversation
For example OpenWRT doesn't have `udevadm`. This tool works perfectly otherwise, but it prints and an error message, when it tries to execute `udevadm`.
Hi. I was intending to submit a MR to address this and also a similar change to mount-image-callback, both of which I have been using on Alpine Linux for a while, once #35 was merged. So how do you want to handle this? Go with this MR and I raise a MR for mount-image-callback? Or you close this and I submit a single MR for both growpart and mount-image-callback? BTW I also have another MR yet to submit for patches (that again I've been using for months with Alpine Linux) for Busybox compatibility in cloud-localds, mount-image-callback, and resize-part-image. |
Well, to me it's fine either way. But since this pull request is already here, maybe you could just make a pull request for mount-image-callback? |
Ok, then I'd suggest you modify the comment on line 176 to add "(if installed)" after "run udevadm settle". |
Congrats, now it looks exactly like the patch I've been using for some time: https://git.alpinelinux.org/aports/tree/community/cloud-utils/02-make-udev-optional.patch :-) |
Hi @oittaa and thanks for this PR. The change itself LGTM, but I wonder how safe it is. It's probably safe to assume that when It would be nice to run CI on Alpine, but that's not supported by GitHub Actions (https://github.com/actions/virtual-environments). |
Correct.
A workaround could be to run in an Alpine Linux docker container? |
Hi. I applied basically the same change to the Alpine packaged cloud-utils (which I'm the maintainer of) back in Nov 2020. I have tested Alpine VMs using mdev, rather than eudev/udev, with such a patched growpart via a 1st-time boot init.d script and have not encountered any issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM, thanks!
For example OpenWRT doesn't have
udevadm
. This tool works perfectly otherwise, but it prints and an error message, when it tries to executeudevadm
.