sculpt_manager: invoke mkfs.ext2 with -F

The block-vfs plugin is no longer a special file. So we have to
explicitly discharge the sanity check of the mkfs tool.

Issue #3507
This commit is contained in:
Norman Feske 2019-11-18 15:28:37 +01:00 committed by Christian Helmuth
parent 18b621c2fe
commit 6ccd65bd8e

View File

@ -81,8 +81,9 @@ void Sculpt::gen_mkfs_ext2_start_content(Xml_generator &xml,
Storage_target const &target)
{
auto gen_args = [&] (Xml_generator &xml) {
xml.node("arg", [&] () {
xml.attribute("value", "/dev/block"); }); };
xml.node("arg", [&] () { xml.attribute("value", "-F"); });
xml.node("arg", [&] () { xml.attribute("value", "/dev/block"); });
};
gen_e2fs_start_content(xml, target, "mkfs.ext2", gen_args);
}