summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-10 10:04:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-10 10:04:07 +0000
commit23c2f66bb9e8862ef38c90a811fe9b00825111c4 (patch)
treecbeace8b95ac91f58e6c2e9a7c3d4fb97a7ab444
parent908701a9a0118e798b4f0bf9b0901a91d3ba9e1e (diff)
downloaddrakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.tar
drakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.tar.gz
drakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.tar.bz2
drakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.tar.xz
drakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.zip
create /etc/udev/conf.d/xxx.conf
-rw-r--r--perl-install/any.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 5502bba97..f723435f0 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -811,6 +811,12 @@ UNREGISTER ^$devfs_if\$ CFUNCTION GLOBAL unlink $of
UNREGISTER ^$devfs_if\$ CFUNCTION GLOBAL unlink $if
") if $devfs_if ne $if && $if !~ /^hd[a-z]/ && $if !~ /^sr/ && $if !~ /^sd[a-z]/;
+ {
+ my $f = "$::prefix/etc/udev/conf.d/$of.conf";
+ output_p($f, "ln -sf $if /dev/$of\n");
+ chmod 0755, $f;
+ }
+
#- when creating a symlink on the system, use devfs name if devfs is mounted
symlinkf($devfs_if, "$::prefix/dev/$if") if $devfs_if ne $if && detect_devices::dev_is_devfs();
symlinkf($if, "$::prefix/dev/$of");
to_install)
Version 12.77 - 30 October 2009
diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm
index da8becd7f..6e555fd7b 100644
--- a/perl-install/install/media.pm
+++ b/perl-install/install/media.pm
@@ -503,6 +503,7 @@ sub get_media {
foreach (@$media) {
if ($_->{type} eq 'media_cfg') {
$phys_m = url2mounted_phys_medium($o, $_->{url}, 'media_info');
+ local $phys_m->{is_suppl} = $_->{url} ne "drakx://media"; # so that _get_media_url() works
($suppl_CDs, $copy_rpms_on_disk) = get_media_cfg($o, $phys_m, $packages, $_->{selected_names}, $_->{force_rpmsrate});
} elsif ($_->{type} eq 'media') {
$phys_m = url2mounted_phys_medium($o, $_->{url});