mkfs: Add support for ext2 (drop ext4 for now)

pull/8/head
James Mills 2 months ago
parent 06e467e032
commit 8d54963294
Signed by: prologic
GPG Key ID: AC4C014F1440EBD6
  1. 4
      internal/applets/mkfs/mkfs.go

@ -85,8 +85,8 @@ func mkfs(w io.Writer, args []string, opt *Option) error {
switch strings.ToLower(opt.typeFlag) {
case "fat", "fat32", "vfat":
fspec.FSType = filesystem.TypeFat32
case "ext", "ext4":
fspec.FSType = filesystem.TypeExt4
case "ext", "ext2":
fspec.FSType = filesystem.TypeExt2
case "iso", "iso9660":
fspec.FSType = filesystem.TypeISO9660
case "squash", "squashfs":

Loading…
Cancel
Save