From e82e0ceb69274ade6a92b3ad19fc2d51779abef4 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 10 Mar 2016 10:09:09 +0100 Subject: 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. --- liveinit | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3