diff --git a/src/udev/udevadm.h b/src/udev/udevadm.h index af0faff443..86b24af086 100644 --- a/src/udev/udevadm.h +++ b/src/udev/udevadm.h @@ -4,6 +4,7 @@ #include #include "build.h" +#include "macro.h" int info_main(int argc, char *argv[], void *userdata); int trigger_main(int argc, char *argv[], void *userdata); @@ -15,6 +16,7 @@ int test_main(int argc, char *argv[], void *userdata); int builtin_main(int argc, char *argv[], void *userdata); static inline int print_version(void) { - puts(GIT_VERSION); + /* Dracut relies on the version being a single integer */ + puts(STRINGIFY(PROJECT_VERSION)); return 0; }