View previous topic :: View next topic |
Author |
Message |
nurali Apprentice
Joined: 17 Nov 2022 Posts: 182 Location: Somewhere,Earth
|
Posted: Sun Apr 21, 2024 4:08 am Post subject: [SOLVED]systemd-gpt-auto-generator via btrfs(dmesg warnings) |
|
|
Hello all:
I noticed this very long time ago,but it was(and is) harmless(I think,system runs without any problem),so I didn't do anything about it.
Recent days I wanted (tryied to) fix it,but unfortunately,I realize that I overestimated myself.
So I want to get some lessons and maybe solution on this:
Code: |
ali@gentoo ~ $ dmesg | grep systemd-gpt
[ 4.438852] systemd-gpt-auto-generator[360]: File system behind root file system is reported by btrfs to be backed by pseudo-device /dev/root, which is not a valid userspace accessible device node. Cannot determine correct backing block device.
[ 4.440358] (sd-exec-[354]: /usr/lib/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1.
|
lsblk -f:
Code: |
ali@gentoo ~ $ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
nvme0n1
├─nvme0n1p1 vfat FAT32 30D7-924F 1021.7M 0% /efi
├─nvme0n1p2 swap 1 82588610-cf66-4b02-8c15-2d320b1aa906 [SWAP]
└─nvme0n1p3 btrfs 9247e691-df8f-446f-af86-dde6f27713d9 914.8G 3% /var
/usr/local
/tmp
/srv
/home
/opt
/root
/.snapshots
/
|
fstab:
Code: |
# /dev/nvme0n1p3
UUID=9247e691-df8f-446f-af86-dde6f27713d9 / btrfs rw,relatime,compress=zstd:5,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@ 0 0
# /dev/nvme0n1p1
UUID=30D7-924F /efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 2
# /dev/nvme0n1p3
UUID=9247e691-df8f-446f-af86-dde6f27713d9 /.snapshots btrfs rw,relatime,compress=zstd:5,ssd,discard=async,space_cache=v2,subvolid=266,subvol=/@.snapshots 0 0
# /dev/nvme0n1p3
UUID=9247e691-df8f-446f-af86-dde6f27713d9 /home btrfs rw,relatime,compress=zstd:5,ssd,discard=async,space_cache=v2,subvolid=263,subvol=/@home 0 0
# /dev/nvme0n1p3
UUID=9247e691-df8f-446f-af86-dde6f27713d9 /usr/local btrfs rw,relatime,compress=zstd:5,ssd,discard=async,space_cache=v2,subvolid=260,subvol=/@local 0 0
# /dev/nvme0n1p3
UUID=9247e691-df8f-446f-af86-dde6f27713d9 /opt btrfs rw,relatime,compress=zstd:5,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/@opt 0 0
# /dev/nvme0n1p3
UUID=9247e691-df8f-446f-af86-dde6f27713d9 /root btrfs rw,relatime,compress=zstd:5,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@root 0 0
# /dev/nvme0n1p3
UUID=9247e691-df8f-446f-af86-dde6f27713d9 /srv btrfs rw,relatime,compress=zstd:5,ssd,discard=async,space_cache=v2,subvolid=259,subvol=/@srv 0 0
# /dev/nvme0n1p3
UUID=9247e691-df8f-446f-af86-dde6f27713d9 /tmp btrfs rw,relatime,compress=zstd:5,ssd,discard=async,space_cache=v2,subvolid=262,subvol=/@tmp 0 0
# /dev/nvme0n1p3
UUID=9247e691-df8f-446f-af86-dde6f27713d9 /var btrfs rw,relatime,compress=zstd:5,ssd,discard=async,space_cache=v2,subvolid=261,subvol=/@var 0 0
# /dev/nvme0n1p2
UUID=82588610-cf66-4b02-8c15-2d320b1aa906 none swap defaults 0 0
|
Last edited by nurali on Tue Apr 23, 2024 8:08 am; edited 1 time in total |
|
Back to top |
|
|
xgivolari Tux's lil' helper
Joined: 26 Jul 2021 Posts: 102
|
Posted: Mon Apr 22, 2024 3:03 pm Post subject: |
|
|
Do you boot without an initrd, by chance? Looks similar to this:
https://github.com/systemd/systemd/issues/16953
systemd-gpt-auto-generator can mount partitions at the correct mount point based on their type, i.e. without specifying mount points in /etc/fstab or the kernel command line. If you don't need this feature, the commandline parameter systemd.gpt_auto=no should disable these kinds of warnings. |
|
Back to top |
|
|
nurali Apprentice
Joined: 17 Nov 2022 Posts: 182 Location: Somewhere,Earth
|
Posted: Mon Apr 22, 2024 3:13 pm Post subject: |
|
|
xgivolari wrote: | Do you boot without an initrd, by chance? Looks similar to this:
https://github.com/systemd/systemd/issues/16953
systemd-gpt-auto-generator can mount partitions at the correct mount point based on their type, i.e. without specifying mount points in /etc/fstab or the kernel command line. If you don't need this feature, the commandline parameter systemd.gpt_auto=no should disable these kinds of warnings. |
Thanks for replying
Yes,I disabled initrd and loadable kernel modules in the kernel,took me lots of time to simplify the current .config
Thank you again for sharing the issue link,I will check it and decide what to do |
|
Back to top |
|
|
nurali Apprentice
Joined: 17 Nov 2022 Posts: 182 Location: Somewhere,Earth
|
Posted: Tue Apr 23, 2024 8:07 am Post subject: |
|
|
xgivolari wrote: | Do you boot without an initrd, by chance? Looks similar to this:
https://github.com/systemd/systemd/issues/16953
systemd-gpt-auto-generator can mount partitions at the correct mount point based on their type, i.e. without specifying mount points in /etc/fstab or the kernel command line. If you don't need this feature, the commandline parameter systemd.gpt_auto=no should disable these kinds of warnings. |
Thank you again
Understood after checking that issue,and GRUB_CMDLINE_LINUX_DEFAULT="systemd.gpt_auto=no" did the trick,I think I don't need this feature |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|