Mageia Bugzilla – Attachment 8822 Details for
Bug 20016
urpmi hangs indefinitely when called by harddrake during Live system boot
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch for rpm systemd-inhibit plugin that fixes this bug
systemd-inhibit-requires-logind.patch (text/plain), 429 bytes, created by
Martin Whitaker
on 2016-12-29 18:33:31 CET
(
hide
)
Description:
Patch for rpm systemd-inhibit plugin that fixes this bug
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2016-12-29 18:33:31 CET
Size:
429 bytes
patch
obsolete
>--- a/plugins/systemd_inhibit.c 2016-12-29 16:19:55.019557662 +0000 >+++ b/plugins/systemd_inhibit.c 2016-12-29 16:19:32.378870286 +0000 >@@ -62,10 +62,8 @@ > { > struct stat st; > >- if (lstat("/run/systemd/system/", &st) == 0) { >- if (S_ISDIR(st.st_mode)) { >- return RPMRC_OK; >- } >+ if (lstat("/run/systemd/seats/seat0", &st) == 0) { >+ return RPMRC_OK; > } > > return RPMRC_NOTFOUND;
--- a/plugins/systemd_inhibit.c 2016-12-29 16:19:55.019557662 +0000 +++ b/plugins/systemd_inhibit.c 2016-12-29 16:19:32.378870286 +0000 @@ -62,10 +62,8 @@ { struct stat st; - if (lstat("/run/systemd/system/", &st) == 0) { - if (S_ISDIR(st.st_mode)) { - return RPMRC_OK; - } + if (lstat("/run/systemd/seats/seat0", &st) == 0) { + return RPMRC_OK; } return RPMRC_NOTFOUND;
View Attachment As Raw
Actions:
View
Attachments on
bug 20016
: 8822