summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-blockdevices-filesystems.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/libs/lib-blockdevices-filesystems.sh')
-rw-r--r--src/core/libs/lib-blockdevices-filesystems.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh
index 9e79454..df055de 100644
--- a/src/core/libs/lib-blockdevices-filesystems.sh
+++ b/src/core/libs/lib-blockdevices-filesystems.sh
@@ -561,6 +561,7 @@ process_filesystem ()
get_filesystem_program ()
{
[ -z "$1" ] && die_error "get_filesystem_program needs a filesystem id as \$1"
+ [ $1 = swap ] && echo mkswap && return 0
[ $1 = ext2 ] && echo mkfs.ext2 && return 0
[ $1 = ext3 ] && echo mkfs.ext3 && return 0
[ $1 = reiserfs ] && echo mkreiserfs && return 0