summaryrefslogtreecommitdiff
path: root/backend/modules/bootloader
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-10-02 22:16:11 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-10-02 22:16:11 +0200
commitecb5cc2be5527e84ae29239ec8fa789c3ee8587e (patch)
tree4c7c59827ea325c1999daa9160877b764c079756 /backend/modules/bootloader
parent17dd2d0281bf750768bb9820a677806980380c10 (diff)
downloadacritoxinstaller-ecb5cc2be5527e84ae29239ec8fa789c3ee8587e.zip
acritoxinstaller-ecb5cc2be5527e84ae29239ec8fa789c3ee8587e.tar.gz
use ListItems with formatted size info in frontend
Diffstat (limited to 'backend/modules/bootloader')
-rw-r--r--backend/modules/bootloader10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/modules/bootloader b/backend/modules/bootloader
index 3621341..2180873 100644
--- a/backend/modules/bootloader
+++ b/backend/modules/bootloader
@@ -4,14 +4,14 @@
#
# This function lists all disks and the root-partition if it is suitable to install a bootloader on it.
# Output example:
-# /dev/sda:MBR:250059350016
-# /dev/sdb:MBR:400088457216
-# /dev/sdb1:Rootpartition:60003385344
+# /dev/sda 250059350016 Master Boot Record
+# /dev/sdb 400088457216 Master Boot Record
+# /dev/sdb1 60003385344 Rootpartition (filesysem ext4)
function list_bootloader_targets()
{
for disk in $(list_all_disks)
do
- echo "$disk - MBR $(blockdev --getsize64 $disk)"
+ echo "$disk $(blockdev --getsize64 $disk) Master Boot Record"
done
root_dev="$(hdmap_get device of mountpoint /)"
root_fs="$(hdmap_get filesystem of mountpoint /)"
@@ -19,7 +19,7 @@ function list_bootloader_targets()
case $root_fs in
reiserfs|ext2|ext3|ext4)
list_linux_partitions | grep -q "^$root_dev$" &&
- echo "$root_dev - Rootpartition $(blockdev --getsize64 $root_dev)"
+ echo "$root_dev $(blockdev --getsize64 $root_dev) Rootpartition (filesystem $root_fs)"
;;
esac
}