summaryrefslogtreecommitdiff
path: root/src/udev/udevadm.c
diff options
context:
space:
mode:
authorNorbert Lange <nolange79@gmail.com>2020-05-26 10:26:12 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-06-01 09:41:21 +0200
commit63e2d1714eedf884ebd9dd865a9dae8ae670d074 (patch)
treef16d1b52337cbbf511a06f96231fae470a5b2623 /src/udev/udevadm.c
parent0e77fc66bceb9832da82a56a4c1040fe49f8d805 (diff)
downloadsystemd-63e2d1714eedf884ebd9dd865a9dae8ae670d074.tar.gz
udev: single binary replacing udevd and udevadm
Since the separate binaries contain mostly the same code, this almost halves the size of the installation. before: 398K /bin/udevadm 391K /lib/systemd/systemd-udevd after: 431K /bin/udevadm 0 /lib/systemd/systemd-udevd -> ../../bin/udevadm Fixes: #14200
Diffstat (limited to 'src/udev/udevadm.c')
-rw-r--r--src/udev/udevadm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c
index e6dbb111a9..f1115bff7a 100644
--- a/src/udev/udevadm.c
+++ b/src/udev/udevadm.c
@@ -11,6 +11,7 @@
#include "selinux-util.h"
#include "string-util.h"
#include "udevadm.h"
+#include "udevd.h"
#include "udev-util.h"
#include "verbs.h"
#include "util.h"
@@ -110,6 +111,9 @@ static int udevadm_main(int argc, char *argv[]) {
static int run(int argc, char *argv[]) {
int r;
+ if (strstr(program_invocation_short_name, "udevd"))
+ return run_udevd(argc, argv);
+
udev_parse_config();
log_parse_environment();
log_open();