commit 1952888e1872447450ec62b4eebc2c2903dd2cff
parent 424a3966d2e95d2ee967ae4226393803c4628c8f
Author: gryrmln <gryrmln@localhost>
Date: Fri, 2 Apr 2021 12:07:47 +0100
Add F2FS support for bootfs and rootfs (zlibs/imaging)
Signed-off-by: gryrmln <gryrmln@localhost>
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/zlibs/imaging b/zlibs/imaging
@@ -88,6 +88,10 @@ image_format_partitions()
act "Formatting boot as btrfs"
sudo mkfs.btrfs ${=bootopts} "${bootpart}" || { zerr; return 1; }
;;
+ f2fs)
+ act "Formatting boot as f2fs"
+ sudo mkfs.f2fs ${=bootopts} "${bootpart}" || { zerr; return 1; }
+ ;;
"")
die "No bootfs filesystem set!"
zerr; return 1
@@ -115,6 +119,10 @@ image_format_partitions()
act "Formatting root as btrfs"
sudo mkfs.btrfs ${=rootopts} "${rootpart}" || { zerr; return 1; }
;;
+ f2fs)
+ act "Formatting root as f2fs"
+ sudo mkfs.f2fs ${=rootopts} "${rootpart}" || { zerr; return 1; }
+ ;;
"")
die "No rootfs filesystem set!"
zerr; return 1