[systemd-devel] How can we debug systemd-gpt-auto-generator failures?

Kevin P. Fleming kevin at km6g.us
Thu Jul 28 13:40:26 UTC 2022


Thanks! I hadn't paid any attention to that issue since I'm not using
btrfs, but it seems that the root cause is the same.

On Thu, Jul 28, 2022 at 9:31 AM Lennart Poettering
<lennart at poettering.net> wrote:
>
> On Do, 28.07.22 07:40, Kevin P. Fleming (kevin at km6g.us) wrote:
>
> > Thanks for that, it did indeed produce some output, but unfortunately
> > it doesn't seem to lead anywhere specific :-)
> >
> > root at 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


More information about the systemd-devel mailing list