summaryrefslogtreecommitdiff
path: root/backend/modules/hdmap
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-03-18 22:45:58 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-18 22:45:58 +0100
commit7a9fe7af17c77db96ea51db95ee87a6b34fc330c (patch)
treec1d2d9d603329d06ffd216d0d3a8d5d0d89d804f /backend/modules/hdmap
parent6e1a57040af87449ae28469adcceead68f291d89 (diff)
downloadacritoxinstaller-7a9fe7af17c77db96ea51db95ee87a6b34fc330c.zip
acritoxinstaller-7a9fe7af17c77db96ea51db95ee87a6b34fc330c.tar.gz
loop-device and fstab fixes
Diffstat (limited to 'backend/modules/hdmap')
-rw-r--r--backend/modules/hdmap25
1 files changed, 25 insertions, 0 deletions
diff --git a/backend/modules/hdmap b/backend/modules/hdmap
index d57d105..3056b93 100644
--- a/backend/modules/hdmap
+++ b/backend/modules/hdmap
@@ -338,3 +338,28 @@ function prepare_partitions_for_install()
progress=$[progress+1]; emit_progress $[100*progress/progress_steps]
done <<<"$cfg_hdmap"
}
+
+function get_full_hd_map()
+{
+ (
+ echo "$cfg_hdmap"
+ root_disk="$(get_disk "$(hdmap_get device of mountpoint /)")"
+ for part in $(list_all_partitions)
+ do
+ if is_removeable "$part" && [ "$(get_disk "$part")" != "$root_disk" ]; then
+ echo "$part:::"
+ else
+ echo "$part:/media/$(basename "$part")::auto"
+ fi
+ done
+ for part in $(list_linux_partitions)
+ do
+ if is_removeable "$part" && [ "$(get_disk "$part")" != "$root_disk" ]; then
+ echo "$part:::"
+ else
+ echo "$part:/media/$(basename "$part")::auto"
+ fi
+ done
+ ) | sort -u -t: -k1,1
+}
+