summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-28 08:33:00 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-28 08:33:00 +0000
commit60503c679e32866c11d087b795258544b822b9dc (patch)
treea16d4684e8e17a9cf803ad3721ce1d4055d0ea99
parent97dafaff137b5a2ede0c9334e69cbcc789f19557 (diff)
downloaddrakiso-60503c679e32866c11d087b795258544b822b9dc.tar
drakiso-60503c679e32866c11d087b795258544b822b9dc.tar.gz
drakiso-60503c679e32866c11d087b795258544b822b9dc.tar.bz2
drakiso-60503c679e32866c11d087b795258544b822b9dc.tar.xz
drakiso-60503c679e32866c11d087b795258544b822b9dc.zip
create less loop devices by default
-rwxr-xr-xdraklive5
1 files changed, 3 insertions, 2 deletions
diff --git a/draklive b/draklive
index 72f55e8..99515be 100755
--- a/draklive
+++ b/draklive
@@ -427,15 +427,16 @@ sub create_initrd_for_media {
cp_f(@libs, $initrd_tree . $lib_prefix) if $need_libs;
+ my $loop_nb = 63;
require devices;
devices::make($initrd_tree . "/dev/$_") foreach
if_($rrpt_dev, $rrpt_dev),
qw(console initrd null ram systty),
(map { "tty$_" } 0..5),
- (map { "loop$_" } 0..255);
+ (map { "loop$_" } 0 .. $loop_nb);
#- pre-create devfsd compatibility loop devices (since busybox is still built with devfsd support)
mkdir_p($initrd_tree . "/dev/loop");
- cp_af($initrd_tree . "/dev/loop$_", $initrd_tree . "/dev/loop/$_") foreach 0..255;
+ cp_af($initrd_tree . "/dev/loop$_", $initrd_tree . "/dev/loop/$_") foreach 0 .. $loop_nb;
my $kernel = find_kernel($live);
print "using kernel $kernel\n";