From 75dd5c91b9f8e64f11e3fdd9b7ea1f9440b7de97 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 31 Jul 2009 14:42:50 +0000 Subject: add swap support --- lib/MDV/Draklive/Utils.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/MDV') diff --git a/lib/MDV/Draklive/Utils.pm b/lib/MDV/Draklive/Utils.pm index 4352ca9..4dd9a3c 100644 --- a/lib/MDV/Draklive/Utils.pm +++ b/lib/MDV/Draklive/Utils.pm @@ -68,6 +68,8 @@ sub device_mkfs { run_('mkfs.vfat', $device); } elsif (member($type, 'ext2', 'ext3', 'ext4')) { run_("mkfs.$type", "-m", 0, if_($o_inode_size, '-I', $o_inode_size), if_(!-b $device, '-F'), $device); + } elsif ($type eq 'swap') { + run_('mkswap', $device); } else { die "unable to mkfs for unsupported media type $type\n"; } -- cgit v1.2.1