From 8a8ec59b75b639d15f504dca1cc4529e5dd890a3 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 29 Aug 2011 17:10:20 -0400 Subject: [PATCH] add mkhfsimg to imgutils --- src/pylorax/imgutils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py index 50b3afdb..9bfa45f0 100644 --- a/src/pylorax/imgutils.py +++ b/src/pylorax/imgutils.py @@ -218,3 +218,7 @@ def mkext4img(rootdir, outfile, size=None, label="", mountargs="", graft={}): def mkbtrfsimg(rootdir, outfile, size=None, label="", mountargs="", graft={}): mkfsimage("btrfs", rootdir, outfile, size, mountargs=mountargs, mkfsargs=["-L", label], graft=graft) + +def mkhfsimg(rootdir, outfile, size=None, label="", mountargs="", graft={}): + mkfsimage("hfs", rootdir, outfile, size, mountargs=mountargs, + mkfsargs=["-v", label], graft=graft)