[PATCHv2 1/4] initscripts: Add generic function to get the filesystem type of a volume