On 2/27/21 9:43 AM, John Burrell via lfs-dev wrote:
I'm using linux-5.11.1 so presumably not an issue for the 10.1 release
but when booting LFS systemd I get

sudo systemctl status systemd-rfkill

● systemd-rfkill.service - Load/Save RF Kill Switch Status
      Loaded: loaded (/usr/lib/systemd/system/systemd-rfkill.service; static)
      Active: failed (Result: exit-code) since Sat 2021-02-27 15:16:47
GMT; 49s ago
TriggeredBy: ● systemd-rfkill.socket
        Docs: man:systemd-rfkill.service(8)
     Process: 527 ExecStart=/usr/lib/systemd/systemd-rfkill
(code=exited, status=1/FAILURE)
    Main PID: 527 (code=exited, status=1/FAILURE)
       Error: 5 (Input/output error)
         CPU: 1ms

Feb 27 15:16:47 pc systemd[1]: Starting Load/Save RF Kill Switch Status...
Feb 27 15:16:47 pc systemd-rfkill[527]: Read event structure of invalid size.
Feb 27 15:16:47 pc systemd[1]: systemd-rfkill.service: Main process
exited, code=exited, status=>
Feb 27 15:16:47 pc systemd[1]: systemd-rfkill.service: Failed with
result 'exit-code'.
Feb 27 15:16:47 pc systemd[1]: Failed to start Load/Save RF Kill Switch Status.

This line: "Read event structure of invalid size."
has been reported by Redhat and elsewhere.

I don't know if it's a kernel bug or a problem in systemd-247 but it
didn't happen with kernel 5.10.16.

Hi John,

The issue is due to the kernel developers changing the 'rfkill' API in 5.11.0 and breaking compatibility as a result.

Try applying the changes in https://github.com/systemd/systemd/commit/e133c454b1beda0d80020a35f9f92226e8167bc1 to your system and let us know if that works.

Here's the relevant commit from the kernel: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=14486c82612a177cb910980c70ba900827ca0894

And the systemd bug report: https://github.com/systemd/systemd/issues/18677


Thank you for bringing it up!

- Doug

--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to