Skip to content
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

dracut fails to boot #36

Closed
ryao opened this issue Dec 17, 2012 · 1 comment
Closed

dracut fails to boot #36

ryao opened this issue Dec 17, 2012 · 1 comment

Comments

@ryao
Copy link
Contributor

ryao commented Dec 17, 2012

Dracut checks the version of udevadm when booting and fails if it sees our version numbers. This was reported to me by a user in #gentoo on freenode. I wrote the following patch to correct it and gave it to him. I am waiting for feedback.

diff --git a/src/udev/udevadm-info.c b/src/udev/udevadm-info.c
index 95f077c..5fbc778 100644
--- a/src/udev/udevadm-info.c
+++ b/src/udev/udevadm-info.c
@@ -432,7 +432,7 @@ static int uinfo(struct udev *udev, int argc, char *argv[])
                         export_prefix = optarg;
                         break;
                 case 'V':
-                        printf("%s\n", VERSION);
+                        printf("%s\n", UDEV_VERSION);
                         goto exit;
                 case 'h':
                         printf("%s\n", usage);
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c
index b91d3cc..82852fb 100644
--- a/src/udev/udevadm.c
+++ b/src/udev/udevadm.c
@@ -34,7 +34,7 @@ void udev_main_log(struct udev *udev, int priority,

 static int adm_version(struct udev *udev, int argc, char *argv[])
 {
-        printf("%s\n", VERSION);
+        printf("%s\n", UDEV_VERSION);
         return 0;
 }

diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index bc7b578..fb536be 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1141,7 +1141,7 @@ int main(int argc, char *argv[])
                                "\n");
                         goto exit;
                 case 'V':
-                        printf("%s\n", VERSION);
+                        printf("%s\n", UDEV_VERSION);
                         goto exit;
                 default:
                         goto exit;
@ryao
Copy link
Contributor Author

ryao commented Jan 14, 2013

This fix has been merged into master.

@ryao ryao closed this as completed Jan 14, 2013
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

No branches or pull requests

1 participant