summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Media.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-08-03 10:02:48 +0000
committerOlivier Blin <oblin@mandriva.com>2009-08-03 10:02:48 +0000
commitc72d7bdafa5400200ab12301e29417689658ac5e (patch)
tree5eb177046775b263849999478dc13f6901638e9a /lib/MDV/Draklive/Media.pm
parenta9fa8e298ae530af842dce7be92c32cfd3a34626 (diff)
downloaddrakiso-c72d7bdafa5400200ab12301e29417689658ac5e.tar
drakiso-c72d7bdafa5400200ab12301e29417689658ac5e.tar.gz
drakiso-c72d7bdafa5400200ab12301e29417689658ac5e.tar.bz2
drakiso-c72d7bdafa5400200ab12301e29417689658ac5e.tar.xz
drakiso-c72d7bdafa5400200ab12301e29417689658ac5e.zip
allow to install bootloader on separate /boot partition
Diffstat (limited to 'lib/MDV/Draklive/Media.pm')
-rw-r--r--lib/MDV/Draklive/Media.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm
index 4c7a7f4..4dcc403 100644
--- a/lib/MDV/Draklive/Media.pm
+++ b/lib/MDV/Draklive/Media.pm
@@ -52,6 +52,11 @@ sub find_partition_index {
eval { find_index { $_->{mntpoint} eq $mntpoint } @{$media->{partitions}} };
}
+sub find_boot_partition_index {
+ my ($media) = @_;
+ $media->find_partition_index('/boot') || $media->find_partition_index('/');
+}
+
sub supplement_partitions {
my ($media, $total_size) = @_;