summaryrefslogtreecommitdiffstats
path: root/liveinit
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-03-10 10:09:09 +0100
committer Eric Hameleers <alien@slackware.com>2016-03-10 10:09:09 +0100
commite82e0ceb69274ade6a92b3ad19fc2d51779abef4 (patch)
treef49e09c9f3edf2e748532e6c5ab98319d0863f71 /liveinit
parenta90330d1814e42c0b4f90e953dd26f75cae3a508 (diff)
downloadliveslak-e82e0ceb69274ade6a92b3ad19fc2d51779abef4.tar.gz
liveslak-e82e0ceb69274ade6a92b3ad19fc2d51779abef4.tar.xz
Increase the maximum number of loop devices the Live OS will use to 96.
If you have a large number of addon modules, 96 may still be too low. This value can be changed on boot-time by the 'maxloops=' boot parameter.
Diffstat (limited to 'liveinit')
-rwxr-xr-xliveinit10
1 files changed, 9 insertions, 1 deletions
diff --git a/liveinit b/liveinit
index 315ec52..7436cab 100755
--- a/liveinit
+++ b/liveinit
@@ -54,6 +54,11 @@ DEBUG=0
# Masochists can copy the live environment into RAM:
TORAM=0
+# The default number of loop devices the Live OS will use (if you have
+# a large number of addon modules, this value may be too low).
+# Can be changed by the 'maxloops=' boot parameter:
+MAXLOOPS=96
+
# By default we do not touch local hard disks (raid, lvm, btrfs):
LOCALHD=0
@@ -133,6 +138,9 @@ for ARG in $(cat /proc/cmdline); do
# Format: luksvol=file1[:/mountpoint1][,file1[:/mountpoint2],...]
LUKSVOL=$(echo $ARG | cut -f2 -d=)
;;
+ maxloops=*)
+ MAXLOOPS=$(echo $ARG | cut -f2 -d=)
+ ;;
nga)
GLAMORACCEL=0
;;
@@ -261,7 +269,7 @@ if [ "$RESCUE" = "" ]; then
lodev=$(losetup -f)
if [ -z "$lodev" ]; then
# We exhausted the available loop devices, so create the block device:
- for NOD in $(seq 0 64); do
+ for NOD in $(seq 0 ${MAXLOOPS}); do
if [ ! -b /dev/loop${NOD} ]; then
mknod -m660 /dev/loop${NOD} b 7 ${NOD}
break