summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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