Re: How can we debug systemd-gpt-auto-generator failures?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Do, 28.07.22 07:40, Kevin P. Fleming (kevin@xxxxxxx) wrote:

> Thanks for that, it did indeed produce some output, but unfortunately
> it doesn't seem to lead anywhere specific :-)
>
> root@edge21-a:~# SYSTEMD_LOG_LEVEL=debug SYSTEMD_LOG_TARGET=console
> LIBBLKID_DEBUG=all
> /usr/lib/systemd/system-generators/systemd-gpt-auto-generator
> Found container virtualization none.
> Disabling root partition auto-detection, root= is defined.
> Disabling root partition auto-detection, root= is defined.
> Failed to open device: No such device
>
> Adding strace to the command provides something more useful:
>
> openat(AT_FDCWD, "/", O_RDONLY|O_CLOEXEC|O_PATH|O_DIRECTORY) = 3
> openat(3, "sys", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 4
> fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
> close(3)                                = 0
> openat(4, "dev", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 3
> fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> close(4)                                = 0
> openat(3, "block", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 4
> fstat(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> close(3)                                = 0
> openat(4, "0:0", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = -1 ENOENT (No
> such file or directory)
> close(4)
>
> So it's trying to open() /sys/dev/block/0:0, but my system does not
> have that device file. The only files in /sys/dev/block are 8:0
> through 8:3.

→ https://github.com/systemd/systemd/issues/22504

Lennart

--
Lennart Poettering, Berlin



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux