summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Draklive/Utils.pm2
1 files changed, 2 insertions, 0 deletions
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";
}