libfstools: properly label ext4 overlay
authorDaniel Golle <daniel@makrotopia.org>
Fri, 23 Sep 2016 03:10:42 +0000 (05:10 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 23 Sep 2016 03:10:42 +0000 (05:10 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/rootdisk.c

index 98c749de1bc98ce7ecae00c11080963abdc528a1..d4ff201bf92658b8de0c973ff266307740681ab9 100644 (file)
@@ -264,7 +264,7 @@ static int rootdisk_volume_init(struct volume *v)
                if (rootdisk_use_f2fs(p))
                        snprintf(str, sizeof(str), "mkfs.f2fs -l rootfs_data %s", v->blk);
                else
-                       snprintf(str, sizeof(str), "mkfs.ext4 %s", v->blk);
+                       snprintf(str, sizeof(str), "mkfs.ext4 -L rootfs_data %s", v->blk);
                system(str);
                break;
        default: