Bugzilla – Bug 155314
mkbootdisk fails with "out of memory" error
Last modified: 2006-03-18 11:14:15 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! $
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
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.
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";
Steffen: Did you write that script? Maby you should mention this somewhere at the beginning. Also, the product string still says 10.0 ;)
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'.
updated script
Works on Beta 8 (i386) with loop mounted ISOs.