summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-29 09:15:11 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-29 09:15:11 +0000
commitcc5ad3f7570672c121753537f34fa492cf44add7 (patch)
tree2748cea51d43d5c4c60b5e8039475513acbceb2a
parent4cb1c1ccfcc8e889247ea1e0c8957dd920e54ed5 (diff)
downloaddrakiso-cc5ad3f7570672c121753537f34fa492cf44add7.tar
drakiso-cc5ad3f7570672c121753537f34fa492cf44add7.tar.gz
drakiso-cc5ad3f7570672c121753537f34fa492cf44add7.tar.bz2
drakiso-cc5ad3f7570672c121753537f34fa492cf44add7.tar.xz
drakiso-cc5ad3f7570672c121753537f34fa492cf44add7.zip
fix storage types usage
-rw-r--r--lib/MDV/Draklive/Media.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm
index 76188d8..6c916ca 100644
--- a/lib/MDV/Draklive/Media.pm
+++ b/lib/MDV/Draklive/Media.pm
@@ -1,6 +1,7 @@
package MDV::Draklive::Media;
use MDK::Common;
+use MDV::Draklive::Storage;
sub get_initrd_path {
my ($media) = @_;
@@ -10,13 +11,13 @@ sub get_initrd_path {
#- mainly for storage-specific subroutines
sub get_storage_setting {
my ($media, $setting) = @_;
- $storage{$media->{storage}}{$setting};
+ $MDV::Draklive::Storage::storage_types{$media->{storage}}{$setting};
}
#- for actions that support an optional boot storage type
sub get_boot_setting {
my ($media, $setting, $opts) = @_;
- $opts->{boot} ? $storage{$opts->{boot}}{$setting} : get_media_setting($media, $setting);
+ $opts->{boot} ? $MDV::Draklive::Storage::storage_types{$opts->{boot}}{$setting} : get_media_setting($media, $setting);
}
#- for user-customisable media setting, that can override storage setting