feat(region,host,host-deployer): f2fs filesystem support (#23118)

This commit is contained in:
wanyaoqi
2025-08-22 09:06:31 +08:00
committed by GitHub
parent f1f01ea823
commit cff38d74ec
10 changed files with 20 additions and 4 deletions
+1 -1
View File
@@ -382,7 +382,7 @@ func FsFormatToDiskType(fsFormat string) string {
switch {
case fsFormat == "swap":
return "linux-swap"
case strings.HasPrefix(fsFormat, "ext") || fsFormat == "xfs":
case strings.HasPrefix(fsFormat, "ext") || fsFormat == "xfs" || fsFormat == "f2fs":
return "ext2"
case strings.HasPrefix(fsFormat, "fat"):
return "fat32"