summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-09-28 01:57:21 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-09-28 01:57:21 +0200
commite7983362e6242d6d14b29723cd76db59f5532484 (patch)
treed14cdf17142b2373501608d94881b1f327227871 /backend
parentdbc4e5afece7d88daed8628d7fbfef1c6d856c4d (diff)
downloadacritoxinstaller-e7983362e6242d6d14b29723cd76db59f5532484.zip
acritoxinstaller-e7983362e6242d6d14b29723cd76db59f5532484.tar.gz
progress corrections
Diffstat (limited to 'backend')
-rw-r--r--backend/modules/hdmap12
-rw-r--r--backend/modules/install_main6
2 files changed, 14 insertions, 4 deletions
diff --git a/backend/modules/hdmap b/backend/modules/hdmap
index 93d321f..0558a97 100644
--- a/backend/modules/hdmap
+++ b/backend/modules/hdmap
@@ -103,11 +103,11 @@ function check_partitions_for_install()
unset found_root
local progress_steps=$(( $(wc -l <<<"$cfg_hdmap") * 2 + 1))
local progress=0
- progress=$[progress+1]; emit_progress $[100*progress/progress_steps]
# compute partition_min_table
local partition_min_table_=$ESTIMATED_ROOT_MIN
while IFS=: read device mountpoint filesystem automount
do
+ progress=$[progress+1]; emit_progress $[100*progress/progress_steps]
case "$mountpoint" in
"") continue;;
/) continue;;
@@ -128,13 +128,17 @@ function check_partitions_for_install()
done
var_mp="$(echo "$mountpoint" | sed 's/[^a-zA-Z0-9]/_/g')"
eval local partition_min_table$var_mp=$MP_MIN
- progress=$[progress+1]; emit_progress $[100*progress/progress_steps]
done <<<"$cfg_hdmap"
+ progress=$[progress+1]; emit_progress $[100*progress/progress_steps]
isosrc_dev="$(awk '{if($2 == "/isosrc"){print $1}}' /proc/mounts)"
while IFS=: read device mountpoint filesystem automount
do
- [ -z "$mountpoint" ] && continue;
+ if [ -z "$mountpoint" ]; then
+ # update progress
+ progress=$[progress+1]; emit_progress $[100*progress/progress_steps]
+ continue
+ fi
# set flag if there is a root-partition in the hd_map
[ "$mountpoint" = / ] && found_root=1
@@ -253,6 +257,8 @@ function prepare_partitions_for_install()
local progress=0
while IFS=: read device mountpoint filesystem automount
do
+ [ -z "$mountpoint" ] && continue
+
[ "$1" != "--nomount" ] && umount_all_affected $device
# format device with filesystem (if specified)
diff --git a/backend/modules/install_main b/backend/modules/install_main
index 2c1f931..4705b65 100644
--- a/backend/modules/install_main
+++ b/backend/modules/install_main
@@ -38,7 +38,11 @@ EOF
while IFS=: read device mountpoint filesystem automount
do
- [ -z "$mountpoint" ] && continue
+ if [ -z "$mountpoint" ]; then
+ # update progress
+ progress=$[progress+1]; emit_progress $[100*progress/progress_steps]
+ continue
+ fi
fstab_options=""; fstab_dump=0; fstab_pass=2; fstab_type=""
[ -z "$fstab_type" ] && fstab_type=$filesystem