diff options
author | David Cantrell <dcantrell@redhat.com> | 2008-12-17 17:37:51 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2008-12-18 10:11:22 -1000 |
commit | 4227498343144cf5b3b8a48d0b5fbc55c34cd6fb (patch) | |
tree | 2c4836620befba48bddabfc52e2c32580d8ad1a3 /loader/hardware.c | |
parent | 886f2d46176ac497c0d0e794b4d6c6f14e482be4 (diff) | |
download | anaconda-4227498343144cf5b3b8a48d0b5fbc55c34cd6fb.tar.gz anaconda-4227498343144cf5b3b8a48d0b5fbc55c34cd6fb.tar.xz anaconda-4227498343144cf5b3b8a48d0b5fbc55c34cd6fb.zip |
Call 'udevadm settle' instead of 'udevsettle'.
Log file had a message telling us to use 'udevadm settle' instead of
'udevsettle' and that udevsettle support as argv[0] will be removed
in the future. This patch changes loader to call 'udevadm settle'.
[rawhide]
Diffstat (limited to 'loader/hardware.c')
-rw-r--r-- | loader/hardware.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/hardware.c b/loader/hardware.c index 202c64187..e9be27933 100644 --- a/loader/hardware.c +++ b/loader/hardware.c @@ -75,7 +75,7 @@ static int detectHardware() { logMessage(DEBUGLVL, "waiting for hardware to initialize"); if (!(child = fork())) { - char *args[] = { "/sbin/udevsettle", "udevsettle", NULL, NULL }; + char *args[] = { "/sbin/udevadm", "settle", NULL, NULL }; int fd = open("/dev/tty3", O_RDWR); dup2(fd, 0); @@ -84,13 +84,13 @@ static int detectHardware() { close(fd); if (timeout) { - if (asprintf(&args[2],"--timeout=%d",timeout) == -1) { + if (asprintf(&args[2], "--timeout=%d", timeout) == -1) { logMessage(CRITICAL, "%s: %d: %m", __func__, __LINE__); abort(); } } - rc = execv("/sbin/udevsettle",args); + rc = execv("/sbin/udevadm", args); _exit(1); } |