Bug#1067517: AW: Re: Bug#1067517: found bug in checkdisk

2024-03-26 Thread Thomas Lange
> On Tue, 26 Mar 2024 13:36:44 +, Florian Goth 
>  said:

> OK, on my system, in a fai-nfsroot for bookworm
> the group of /dev/sda was root, and this was also returned by this stat 
command.
This may happen if you do not use systemd inside the nfsroot for
bookworm with FAI 6.2 and newer. You may need to adjust the
/etc/fai/NFSROOT config if you are still using an old version.
In the past this config disabled systemd inside the nfsroot.



Bug#1067517: AW: Re: Bug#1067517: found bug in checkdisk

2024-03-26 Thread Florian Goth

OK, on my system, in a fai-nfsroot for bookworm

the group of /dev/sda was root, and this was also returned by this stat command.


Best,

Florian.



Von: Thomas Lange 
Gesendet: Dienstag, 26. März 2024 09:48:27
An: Florian Goth; 1067...@bugs.debian.org
Betreff: [EXT] Re: Bug#1067517: found bug in checkdisk

>>>>> On Mon, 25 Mar 2024 11:57:10 +, Florian Goth 
>>>>>  said:

> stat -c %G
> returns the group of the owner, but nothing related to a device type.
And this group is "disk" in case it's a disk.

--
viele Grüße Thomas


Bug#1067517: found bug in checkdisk

2024-03-26 Thread Thomas Lange
> On Mon, 25 Mar 2024 11:57:10 +, Florian Goth 
>  said:

> stat -c %G
> returns the group of the owner, but nothing related to a device type.
And this group is "disk" in case it's a disk.

-- 
viele Grüße Thomas



Bug#1067517: found bug in checkdisk

2024-03-25 Thread Florian Goth
Hi everyone,

further debugging allowed me to find the root cause.

I think there is a bug in line 1356 of the function checkdisk in subroutines:

$(stat -c %G /dev/$device) = "disk"


According to the manuals I found 
(https://man7.org/linux/man-pages/man1/stat.1.html)


stat -c %G

returns the group of the owner, but nothing related to a device type.


Therefore reintroducing the old way of determining hard drives fixes this issue.





(SFB1170, Project Z03, part-time system administration)
Interested in Research Software? https://de-rse.org/chapter/wue/
http://z03.physik.uni-wuerzburg.de  (uni network)

Theoretische Physik 1
Institut für theoretische Physik und Astrophysik
Am Hubland, 97074 Würzburg
GERMANY