diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-06-17 21:42:39 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-06-17 21:42:39 +0000 |
commit | 88b99f870f4d7d0019e1593d9545e8bb7c05f0f1 (patch) | |
tree | 387774c77c9d1597404b9b71d59fd896216b09df /lib | |
parent | ae2a09cf9f6899d5526d56ed92b3091c14a6d153 (diff) | |
download | drakiso-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.tar drakiso-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.tar.gz drakiso-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.tar.bz2 drakiso-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.tar.xz drakiso-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.zip |
allow to set inode size in {media}{inode_size} for ext2/ext3 file systems
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDV/Draklive/Utils.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MDV/Draklive/Utils.pm b/lib/MDV/Draklive/Utils.pm index 8e9ed65..906680f 100644 --- a/lib/MDV/Draklive/Utils.pm +++ b/lib/MDV/Draklive/Utils.pm @@ -63,11 +63,11 @@ sub device_allocate_file { #- format $device as type $type sub device_mkfs { - my ($device, $type) = @_; + my ($device, $type, $o_inode_size) = @_; if ($type eq 'vfat') { run_('mkfs.vfat', $device); } elsif (member($type, 'ext2', 'ext3')) { - run_("mkfs.$type", "-m", 0, if_(!-b $device, '-F'), $device); + run_("mkfs.$type", "-m", 0, if_($o_inode_size, '-I', $o_inode_size), if_(!-b $device, '-F'), $device); } else { die "unable to mkfs for unsupported media type $type\n"; } |