summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-15 18:19:29 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-15 18:19:29 +0000
commit7ae531ff52637370d09b7a69d52844706e1f1dee (patch)
treeeebc141d4eb265f78083e1f9a28ab43e54220e0a
parentc04b44f280c4bfd8aabbd9b371bcdedaf9473f86 (diff)
downloaddrakx-7ae531ff52637370d09b7a69d52844706e1f1dee.tar
drakx-7ae531ff52637370d09b7a69d52844706e1f1dee.tar.gz
drakx-7ae531ff52637370d09b7a69d52844706e1f1dee.tar.bz2
drakx-7ae531ff52637370d09b7a69d52844706e1f1dee.tar.xz
drakx-7ae531ff52637370d09b7a69d52844706e1f1dee.zip
use correct module and mount type for cdrom storage
-rwxr-xr-xtools/draklive11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/draklive b/tools/draklive
index a30f38049..5b1b87a36 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -95,8 +95,8 @@ my %predefined = (
},
cdrom => {
storage => 'cdrom',
- fs => 'vfat',
- source => 'LABEL=MDVUSBROOT',
+ fs => 'iso9660',
+ source => 'LABEL=MDVCDROOT',
mountpoint => '/media',
},
},
@@ -123,6 +123,11 @@ sub nls_modules {
map { "nls_$_" } (map { "iso8859-$_" } 1..7, 9, 13..15), 'utf8';
}
+sub fs_module {
+ my ($live) = @_;
+ $live->{media}{fs} eq 'iso9660' ? 'isofs' : $live->{media}{fs};
+}
+
sub progress_start {
my ($total, $time, $o_exp_divide) = @_;
{
@@ -298,7 +303,7 @@ sub create_initrd {
uniq(map { modules::cond_mapping_24_26($_) } category2modules($storage{$live->{media}{storage}}{modules}));
my ($extra_modules, $missing) = partition { exists $moddeps{$_} }
nls_modules($live),
- $live->{media}{fs},
+ fs_module($live),
@{$live->{media}{modules} || []},
(map { @{$loop{$_}{modules} || []} } uniq(map { $_->{type} } grep { $_->{type} } @{$live->{mount}{dirs} || []})),
($live->{mount}{overlay} ? @{$overlay{$live->{mount}{overlay}}{modules} || []} : ());