Bug 155314 - mkbootdisk fails with "out of memory" error
Summary: mkbootdisk fails with "out of memory" error
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Installation (show other bugs)
Version: Beta 6
Hardware: x86 SuSE Linux 10.1
: P5 - None : Normal (vote)
Target Milestone: Beta 8
Assignee: Steffen Winterfeldt
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords: Code_Error, Install
Depends on:
Blocks:
 
Reported: 2006-03-05 09:22 UTC by Andreas Stieger
Modified: 2006-03-18 11:14 UTC (History)
1 user (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
insert missing "i386/" to $src on mkbootdisk (337 bytes, patch)
2006-03-05 14:35 UTC, Andreas Stieger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.