summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-09-14 12:48:54 +0000
committerramon <ramongomez@us.es>2012-09-14 12:48:54 +0000
commit743257efc727f8dd70e59d1f3949aafe5d1cc7a7 (patch)
tree826bd80553d66b6d989c3b3a4f699c5a105e2e47 /client
parent8e9669e5b147563e59be98646311a560e0d772aa (diff)
#142: PreparaciĆ³n para redimiensionar particiones tipo FAT.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3284 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client')
-rw-r--r--client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.filesystem.local1
-rwxr-xr-xclient/engine/FileSystem.lib9
2 files changed, 8 insertions, 2 deletions
diff --git a/client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.filesystem.local b/client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.filesystem.local
index 9f012ffc..defc93f9 100644
--- a/client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.filesystem.local
+++ b/client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.filesystem.local
@@ -5,6 +5,7 @@ install drbl-ntfsprogs
install ntfsprogs
install ntfs-3g
install dosfstools
+install fatresize
install dmraid
install dmsetup
install lvm2
diff --git a/client/engine/FileSystem.lib b/client/engine/FileSystem.lib
index 37e13420..9b22284e 100755
--- a/client/engine/FileSystem.lib
+++ b/client/engine/FileSystem.lib
@@ -138,6 +138,7 @@ case "$TYPE" in
REISERFS) PROG="resize_reiserfs"; PARAMS="-f" ;;
BTRFS) PROG="btrfs"; PARAMS="filesystem resize max" ;;
NTFS) PROG="ntfsresize"; PARAMS="<<<\"y\" -f" ;;
+# FAT32|FAT16) # Usar "fatresize"
*) ogRaiseError $OG_ERR_PARTITION "$1 $2 $TYPE"
return $? ;;
esac
@@ -750,9 +751,11 @@ case "$(ogGetFsType $1 $2)" in
# awk -v B=$BLKS '/minimum size/ {print int($7*1.1*B/2048)}')
#resize2fs -fp $PART "${SIZE}M" &>/dev/null || ogRaiseError $OG_ERR_PARTITION "$1,$2" || return $?
resize2fs -fpM $PART &>/dev/null || ogRaiseError $OG_ERR_PARTITION "$1,$2" || return $?
- ;;
+ ;;
+# BTRFS) # Usar "btrfs"
+# ;;
# REISERFS) # Usar "resize_reiserfs"
-# ;;
+# ;;
NTFS)
ogDeleteFile $1 $2 pagefile.sys
ogDeleteFile $1 $2 hiberfil.sys
@@ -765,6 +768,8 @@ case "$(ogGetFsType $1 $2)" in
[ "$SIZE" == 0 ] && return 1
ntfsresize -fs "${SIZE}M" $PART <<<"y" || ogRaiseError $OG_ERR_PARTITION "error reduciendo $1,$2" || return $?
;;
+# FAT32|FAT16) # Usar "fatresize"
+# ;;
*) ogRaiseError $OG_ERR_PARTITION "$1,$2"
return $? ;;
esac