Red Hat Bugzilla – Bug 67345
mkinitrd assumes there are only 8 loop devices available
Last modified: 2007-04-18 12:43:33 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020605
Description of problem:
mkinitrd has a hardcoded list of loop devices to search for a free one to use to
make the inintrd image. This list is currently 0 1 2 3 4 5 6 7 8. All current
kernels, however, support 15 loop devices. This list should either be extended
to include 9 10 11 12 13 14 15 16 or /dev should be searched directly for all
the available loop device nodes.
This change should also be applied to other Red Hat releases, including 6.2 if
Bug 67343, https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=67343 is resolved.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. mount -o loop 8 separate filesystems or losetup loop0-loop7.
2. try running mkinitrd.
3. ls -l /dev/loop* and notice that there are more loop devices available which
mkinitrd could use if it knew how.
Actual Results: # mkinitrd /boot/initrd-2.2.19-6.2.16.img 2.2.19-6.2.16
All of your loopback devices are in use!
Expected Results: mkinitrd should have tried using loop8-loop15, and only
printed the error message if all those were in use too.
already fixed in rawhide's mkinitrd