summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-03 23:09:44 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-03 23:09:44 +0000
commit160b0df64174574097f6f32a997070f55498d5bb (patch)
tree04e0160f4f00d91ec2732d80201d788cad776ce5
parentc0f1ac2f1a620dda29c95e7d6956550b4eb02c9f (diff)
downloaddraklive-160b0df64174574097f6f32a997070f55498d5bb.tar
draklive-160b0df64174574097f6f32a997070f55498d5bb.tar.gz
draklive-160b0df64174574097f6f32a997070f55498d5bb.tar.bz2
draklive-160b0df64174574097f6f32a997070f55498d5bb.tar.xz
draklive-160b0df64174574097f6f32a997070f55498d5bb.zip
eventually add and use probe-modules helper from stage1
-rwxr-xr-xdraklive3
1 files changed, 3 insertions, 0 deletions
diff --git a/draklive b/draklive
index 6e7c299..c6ada95 100755
--- a/draklive
+++ b/draklive
@@ -412,6 +412,8 @@ sub create_initrd_for_media {
shift @l;
symlink('busybox', $initrd_tree . "/bin/$_") foreach @l;
+ cp_f(get_system_root($live) . "/usr/lib/drakx-installer-binaries/probe-modules", $initrd_tree . '/bin');
+
my $rrpt_dev = get_media_setting($media, 'rereadpt');
if ($rrpt_dev) {
$need_libs = 1;
@@ -534,6 +536,7 @@ sub create_initrd_scriptlet {
#- required for cdrom labels
"mount -t sysfs none /sys",
(map { join(" ", "insmod", "/modules/$_.ko", grep { $_ } $live->{system}{module_options}{$_}) } @modules),
+ "probe-modules",
if_(member('usb-storage', @modules),
#- wait some seconds for the usb-stor-scan process to be run
"sleep 2",