Bug 155314

Summary: mkbootdisk fails with "out of memory" error
Product: [openSUSE] SUSE Linux 10.1 Reporter: Andreas Stieger <Andreas.Stieger>
Component: InstallationAssignee: Steffen Winterfeldt <snwint>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Beta 6Keywords: Code_Error, Install
Target Milestone: Beta 8   
Hardware: x86   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: insert missing "i386/" to $src on mkbootdisk

Description Andreas Stieger 2006-03-05 09:22:16 UTC
mkbootdisk fails with the error message "out of memory" after about two minutes when called from a loop mounted image, leaving a directory of about the size of a CD-ROM in /tmp. The OS actually running the script is SUSE Linux 9.3. Creating the boot floppies from a loop mounted SUSE Linux 10.0 image works on that 313MB RAM machine.

$ ls -1
.
..
MD5SUMS
SUSE-Linux-10.1-beta6-i386-CD1.iso
SUSE-Linux-10.1-beta6-i386-CD2.iso
SUSE-Linux-10.1-beta6-i386-CD3.iso
SUSE-Linux-10.1-beta6-i386-CD4.iso
SUSE-Linux-10.1-beta6-i386-CD5.iso
$ mount -o loop SUSE-Linux-10.1-beta6-i386-CD1.iso /mnt
$ /mnt/boot/i386/mkbootdisk /mnt
Out of memory!
$
Comment 1 Andreas Stieger 2006-03-05 12:11:23 UTC
Same error on a different machine:
1 Gig RAM / 1 Gig swap 2x PIII 800MHz / SUSE 10.0
"free" sais all of ram and swap is used up during the process
Comment 2 Andreas Stieger 2006-03-05 14:09:54 UTC
from 

$ diff -s 10.0/CD1/boot/mkbootdisk 10.1/CD1/boot/i386/mkbootdisk
Files 10.0/CD1/boot/mkbootdisk and 10.1/CD1/boot/i386/mkbootdisk are identical

I assume that the error is due to a change in directory layout on CD1.
Comment 3 Andreas Stieger 2006-03-05 14:35:33 UTC
Created attachment 71274 [details]
insert missing "i386/" to $src on mkbootdisk

in short, adjust to changed directory structure.
-my $src = "$opt_src/boot/loader";
+my $src = "$opt_src/boot/i386/loader";
Comment 4 Michael Gross 2006-03-06 11:13:58 UTC
Steffen: Did you write that script? Maby you should mention this somewhere at the beginning. Also, the product string still says 10.0 ;)
Comment 5 Steffen Winterfeldt 2006-03-06 13:27:59 UTC
Ehm, yes, comment 3 is correct. I just haven't found the time to adjust
the script. BTW, you can also do 'mkbootdisk /foo/CD1/boot/loader/i386'.
Comment 6 Steffen Winterfeldt 2006-03-09 14:39:51 UTC
updated script
Comment 7 Andreas Stieger 2006-03-18 11:14:15 UTC
Works on Beta 8 (i386) with loop mounted ISOs.