https://bugzilla.novell.com/show_bug.cgi?id=398513 Summary: kiwi: doesn't find USB stick device Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: System Imaging AssignedTo: ms@novell.com ReportedBy: ms@novell.com QAContact: adrian@novell.com Found By: --- when kiwi is invoked with the --bootstick ... --bootstick-system option to deploy an image onto a stick plugged in it searches for the available USB stick devices by calling the function getRemovableUSBStorageDevices this function does not work correctly on suse 11.0 kernel because of changes in the /sys filesystem. The following patch fixes that and allows the USB stick devices to be found on old and new /sys layers Index: modules/KIWIBoot.pm =================================================================== --- modules/KIWIBoot.pm (revision 1312) +++ modules/KIWIBoot.pm (working copy) @@ -465,9 +465,10 @@ if ($description =~ /block:(.*)/) { $description = "/dev/".$1; } else { - my @bdevs = glob ($description); - $description = "/dev/".$bdevs[0]; - $isremovable = $description."/".$bdevs[0]."/removable"; + my @bdevs = glob ("$description/*"); + my $bdev = basename ($bdevs[0]); + $isremovable = $description."/".$bdev."/removable"; + $description = "/dev/".$bdev; } if (! open (FD,$isremovable)) { next; -- 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.