diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-10-28 21:11:25 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-10-28 21:11:25 +0000 |
commit | df2a0eb5c384a2fcef10e9cd56ef477650263d69 (patch) | |
tree | 6b4f69b352daebaffb604dfc8f55a423b7f215a0 /lib/MDV/Draklive/Live.pm | |
parent | d87a28c214c74a4611c61e157722dbe7e4710529 (diff) | |
download | draklive-df2a0eb5c384a2fcef10e9cd56ef477650263d69.tar draklive-df2a0eb5c384a2fcef10e9cd56ef477650263d69.tar.gz draklive-df2a0eb5c384a2fcef10e9cd56ef477650263d69.tar.bz2 draklive-df2a0eb5c384a2fcef10e9cd56ef477650263d69.tar.xz draklive-df2a0eb5c384a2fcef10e9cd56ef477650263d69.zip |
move get_media_prefix as method in MDV::Draklive::Live
Diffstat (limited to 'lib/MDV/Draklive/Live.pm')
-rw-r--r-- | lib/MDV/Draklive/Live.pm | 6 |
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}; |