Skip to content

Commit

Permalink
Update ntfsresize if fails
Browse files Browse the repository at this point in the history
Try to reset the ntfsresize by trying out a fixed size method.
While it may not have been intended to be a fixed size, it obviously
isn't suited for resizing anyway.
  • Loading branch information
mastacontrola committed Jan 9, 2017
1 parent e361c76 commit b2a538c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/web/lib/fog/system.class.php
Expand Up @@ -53,7 +53,7 @@ private static function _versionCompare()
public function __construct()
{
self::_versionCompare();
define('FOG_VERSION', '9');
define('FOG_VERSION', '10');
define('FOG_SCHEMA', 245);
define('FOG_BCACHE_VER', 111);
define('FOG_SVN_REVISION', 6052);
Expand Down
2 changes: 1 addition & 1 deletion packages/web/management/languages/messages.pot
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-09 15:24-0500\n"
"POT-Creation-Date: 2017-01-09 17:16-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
6 changes: 5 additions & 1 deletion src/buildroot/package/fog/scripts/usr/share/fog/lib/funcs.sh
Expand Up @@ -454,7 +454,11 @@ shrinkPartition() {
ntfs)
ntfsresize -f -i -v -P $part >/tmp/tmpoutput.txt 2>&1
if [[ ! $? -eq 0 ]]; then
handleError " * (${FUNCNAME[0]})\n Args Passed: $*\n\nFatal Error, unable to find size data out on $part. Cmd: ntfsresize -f -i -v -P $part"
echo " * Not shrinking ($part) trying fixed size"
debugPause
echo "$(cat "$imagePath/d1.fixed_size_partitions"):${part_number}" > "$imagePath/d1.fixed_size_partitions"
return
#handleError " * (${FUNCNAME[0]})\n Args Passed: $*\n\nFatal Error, unable to find size data out on $part. Cmd: ntfsresize -f -i -v -P $part"
fi
tmpoutput=$(cat /tmp/tmpoutput.txt)
size=$(cat /tmp/tmpoutput.txt | grep "You might resize" | cut -d" " -f5)
Expand Down

0 comments on commit b2a538c

Please sign in to comment.