From 6fe7326b38c6e0961633dbaeba6dd0cdedd2e158 Mon Sep 17 00:00:00 2001 From: Junghoon Kim Date: Mon, 13 Jul 2020 12:57:05 +0900 Subject: [PATCH] Create btrfs images with the metadata single option Tizen product and reference targets embed the NAND flash device as the primary storage. The btrfs filesystem uses the metadata single option as default if a NAND storage is detected. For this, create btrfs images with the metadata single option. Change-Id: I99a3ad08589e51cd7ff8cb6e0275aa03ecdad035 Signed-off-by: Junghoon Kim --- mic/utils/fs_related.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py index 87daea3..160b885 100755 --- a/mic/utils/fs_related.py +++ b/mic/utils/fs_related.py @@ -699,7 +699,7 @@ class BtrfsDiskMount(DiskMount): return msger.verbose("Formating %s filesystem on %s" % (self.fstype, self.disk.device)) - rc = runner.show([self.mkfscmd, "-L", self.fslabel, self.disk.device]) + rc = runner.show([self.mkfscmd, "-L", self.fslabel, "-m", "single", self.disk.device]) if rc != 0: raise MountError("Error creating %s filesystem on disk %s" % (self.fstype,self.disk.device)) -- 2.7.4