mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Modern systems have systemd manage system mount points like sysfs which specify 'sysfs' as a keyword for the device as there is no device associated with this special filesystem. However, any arbitrary string could be specified here and the determination of the sysfs mount point would fail in such a case. To make sure that the mount point of the sysfs is still found when mounted with a device keyword specified other than 'sysfs', check for the filesystem type instead, which is more specific. Fixes: https://github.com/ibm-s390-tools/s390-tools/issues/91 Suggested-by: Mark Post <mpost@suse.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>