summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-28 21:11:25 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-28 21:11:25 +0000
commitdf2a0eb5c384a2fcef10e9cd56ef477650263d69 (patch)
tree6b4f69b352daebaffb604dfc8f55a423b7f215a0 /lib/MDV/Draklive
parentd87a28c214c74a4611c61e157722dbe7e4710529 (diff)
downloaddrakiso-df2a0eb5c384a2fcef10e9cd56ef477650263d69.tar
drakiso-df2a0eb5c384a2fcef10e9cd56ef477650263d69.tar.gz
drakiso-df2a0eb5c384a2fcef10e9cd56ef477650263d69.tar.bz2
drakiso-df2a0eb5c384a2fcef10e9cd56ef477650263d69.tar.xz
drakiso-df2a0eb5c384a2fcef10e9cd56ef477650263d69.zip
move get_media_prefix as method in MDV::Draklive::Live
Diffstat (limited to 'lib/MDV/Draklive')
-rw-r--r--lib/MDV/Draklive/Live.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Live.pm b/lib/MDV/Draklive/Live.pm
index 43b741e..c8839c2 100644
--- a/lib/MDV/Draklive/Live.pm
+++ b/lib/MDV/Draklive/Live.pm
@@ -22,6 +22,12 @@ sub get_system_root {
$live->{settings}{chroot} . '/' . $live->get_name;
}
+sub get_media_prefix {
+ my ($live, $setting, $o_boot) = @_;
+ my $hidden = $live->{system}{hide_media_dirs} && $live->{media}->get_boot_setting('can_hide', { boot => $o_boot });
+ $live->{prefix}{media}{$hidden ? "hidden_$setting" : $setting};
+}
+
sub find_kernel {
my ($live) = @_;
my $kernel = $live->{system}{kernel};