Move up fixed parts to initial test

This commit is contained in:
Quazz
2019-04-05 12:59:11 +02:00
parent 1d1960b2c7
commit 42d971528c

View File

@@ -438,6 +438,7 @@ shrinkPartition() {
local is_fixed=$(echo $fixed | awk "/(^$part_number:|:$part_number:|:$part_number$|^$part_number$)/{print 1}")
if [[ $is_fixed -eq 1 ]]; then
echo " * Not shrinking ($part) fixed size"
echo "$(cat "$imagePath/d1.fixed_size_partitions" | tr -d \\0):${part_number}" > "$imagePath/d1.fixed_size_partitions"
debugPause
return
fi
@@ -459,12 +460,6 @@ shrinkPartition() {
local part_block_size=0
case $fstype in
ntfs)
if [[ $is_fixed -eq 1 ]]; then
echo "$(cat "$imagePath/d1.fixed_size_partitions" | tr -d \\0):${part_number}" > "$imagePath/d1.fixed_size_partitions"
echo " * Not shrinking ($part) recovery/reserved partition"
debugPause
return
fi
ntfsresize -fivP $part >/tmp/tmpoutput.txt 2>&1
if [[ ! $? -eq 0 ]]; then
echo " * Not shrinking ($part) trying fixed size"