mirror of
https://github.com/FOGProject/fos.git
synced 2026-05-01 00:28:03 -05:00
Move up fixed parts to initial test
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user