summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-07-31 14:42:50 +0000
committerOlivier Blin <oblin@mandriva.com>2009-07-31 14:42:50 +0000
commit75dd5c91b9f8e64f11e3fdd9b7ea1f9440b7de97 (patch)
tree47319b71cd2f4f08ea76de9dc0d777ba95bee905 /lib
parent5aa7f0a07c831523fded195ac3d11a0cd5ea10a3 (diff)
downloaddraklive-75dd5c91b9f8e64f11e3fdd9b7ea1f9440b7de97.tar
draklive-75dd5c91b9f8e64f11e3fdd9b7ea1f9440b7de97.tar.gz
draklive-75dd5c91b9f8e64f11e3fdd9b7ea1f9440b7de97.tar.bz2
draklive-75dd5c91b9f8e64f11e3fdd9b7ea1f9440b7de97.tar.xz
draklive-75dd5c91b9f8e64f11e3fdd9b7ea1f9440b7de97.zip
add swap support
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";
}