diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-07-31 14:42:50 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-07-31 14:42:50 +0000 |
commit | 75dd5c91b9f8e64f11e3fdd9b7ea1f9440b7de97 (patch) | |
tree | 47319b71cd2f4f08ea76de9dc0d777ba95bee905 /lib | |
parent | 5aa7f0a07c831523fded195ac3d11a0cd5ea10a3 (diff) | |
download | draklive-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.pm | 2 |
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"; } |