summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-07-20 17:31:20 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-07-20 17:31:20 -0300
commita1424446a181a81dfd6433085fb64970882dac3d (patch)
tree4f53bc39bcf49b8db6df89a087f5228c3026a287 /archiso/mkarchiso
parent99810c2a2f61124f4394bd6a4814698fa4ef8aa7 (diff)
downloadarchiso32-a1424446a181a81dfd6433085fb64970882dac3d.tar.xz
[archiso] Add btrfs support as filesystem for *.fs.sfs
Implements FS#30378 Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso5
1 files changed, 4 insertions, 1 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 1b2a024..c8fc6ff 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -298,7 +298,7 @@ _mksfs () {
# Makes a filesystem from a source directory.
# $1: Source directory
-# $2: Target filesystem type (ext4 | ext3 | ext2 | xfs)
+# $2: Target filesystem type (ext4 | ext3 | ext2 | xfs | btrfs)
# $3: Size of target filesystem. Can be an absolute value in MiB, or relative value of desired free space (1% - 99%)
_mkfs () {
local _src="${1}"
@@ -351,6 +351,9 @@ _mkfs () {
xfs)
mkfs.xfs ${_qflag} "${_fs_img}"
;;
+ btrfs)
+ mkfs.btrfs -M "${_fs_img}"
+ ;;
*)
_msg_error "Invalid filesystem: ${_fs_type}" 1
;;