[Bug 481872] New: the boot.crypto.functions doesn't understand more than 8 loop devices
https://bugzilla.novell.com/show_bug.cgi?id=481872 Summary: the boot.crypto.functions doesn't understand more than 8 loop devices Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i686 OS/Version: openSUSE 11.1 Status: NEW Severity: Enhancement Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: 19972005@mail.ru QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-0.1.2 Firefox/3.0.6 the boot.crypto.functions doesn't understand more than 8 loop devices, if more loop devices used it will fail w/ 'failed to find a usable loop device' . This is from this part of boot.crypto.functions code: ------------------------------------------ # if device is a regular file then it's an image if test -n "$loopdev" -o -f $device; then loopdev='' for i in 0 1 2 3 4 5 6 7; do if ! test -b "/dev/loop$i"; then continue fi unset loopsize read loopsize < /sys/block/loop$i/size if test $? -eq 0 -a "$loopsize" = '0' && /sbin/losetup $param_ro "/dev/loop$i" $device; then device="/dev/loop$i" loopdev="$device" break fi done if test -z "$loopdev"; then report 1 "$physdev: failed to find a usable loop device" failed=1 continue fi fi ------------------------------------- The related 'for i in 0 1 2 3 4 5 6 7; do' should be changed to either something counted from variable in /etc/sysconfig/boot.crypto either counted from 'ls /dev/loop*'. I could provide a patch for my own system, but unsure that will be accepted. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=481872 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |lnussel@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=481872 User lnussel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481872#c1 Ludwig Nussel <lnussel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Ludwig Nussel <lnussel@novell.com> 2009-03-06 05:58:45 MST --- fixed in factory/git -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=481872 User lnussel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481872#c2 Ludwig Nussel <lnussel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Ludwig Nussel <lnussel@novell.com> 2009-03-06 05:58:53 MST --- . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com