Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Script4u-SuSE10.1-5xCD->1xDVD
  • From: "Andrei Verovski (aka MacGuru)" <andreil1@xxxxxxxxxxx>
  • Date: Fri, 12 May 2006 22:30:43 +0300
  • Message-id: <200605122230.43656.andreil1@xxxxxxxxxxx>
Hi,

I have slightly modified script I saw floating around. Just put it in the same
dir as your 5 ISOs of SuSE 10.1, and run it as root. Just got 10.1 installed
from that DVD.

Watch for extra newlines which my be added by your e-mail client and which
will prevent that script from working properly. If so, I have attached it as
text file (not sure SuSE mailing list will accept it).

----------------------------------------------------------------------------------

#!/bin/bash

#Mount the CDs in loopback mode:
mkdir CD1 CD2 CD3 CD4 CD5

mount SUSE-Linux-10.1-GM-i386-CD1.iso CD1 -o loop
mount SUSE-Linux-10.1-GM-i386-CD2.iso CD2 -o loop
mount SUSE-Linux-10.1-GM-i386-CD3.iso CD3 -o loop
mount SUSE-Linux-10.1-GM-i386-CD4.iso CD4 -o loop
mount SUSE-Linux-10.1-GM-i386-CD5.iso CD5 -o loop

# Create a basic structure to overwrite files we need to modify for the CD
(the checksums and boot files).
cp -a CD1/boot .
mkdir i586 i686 noarch setup

cat CD1/suse/i586/MD5SUMS CD2/suse/i586/MD5SUMS CD3/suse/i586/MD5SUMS \
CD4/suse/i586/MD5SUMS CD5/suse/i586/MD5SUMS > i586/MD5SUMS

cat CD1/suse/i686/MD5SUMS CD2/suse/i686/MD5SUMS > i686/MD5SUMS

cat CD1/suse/noarch/MD5SUMS CD2/suse/noarch/MD5SUMS CD3/suse/noarch/MD5SUMS \
CD4/suse/noarch/MD5SUMS CD5/suse/noarch/MD5SUMS > noarch/MD5SUMS

# Now, create the ISO:
mkisofs -o SuSE_10.1.iso \
-b boot/i386/loader/isolinux.bin \
-c boot/i386/loader/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table -l -P SuSE -r -T -V
SuSE_10.1 \
-x CD1/boot -x CD1/suse/i586/MD5SUMS -x CD1/suse/noarch/MD5SUMS -x
CD1/suse/i686/MD5SUMS \
-x CD2/suse/i686/MD5SUMS -x CD2/suse/i586/MD5SUMS \
-x CD2/suse/noarch/MD5SUMS \
-x CD3/suse/i586/MD5SUMS -x CD3/suse/noarch/MD5SUMS \
-x CD4/suse/i586/MD5SUMS -x CD4/suse/noarch/MD5SUMS \
-x CD5/suse/i586/MD5SUMS -x CD5/suse/noarch/MD5SUMS \
-x CD6/suse/i586/MD5SUMS -x CD6/suse/noarch/MD5SUMS \
-graft-points CD1 boot/=boot \
suse/i586/MD5SUMS=i586/MD5SUMS suse/noarch/MD5SUMS=noarch/MD5SUMS
suse/i686/MD5SUMS=i686/MD5SUMS \
suse/=CD2/suse suse/=CD3/suse \
suse/=CD4/suse suse/=CD5/suse \
media.2/=CD2/media.2 media.3/=CD3/media.3 media.4/=CD4/media.4 \
media.5/=CD5/media.5

umount CD1 CD2 CD3 CD4 CD5
rm -R boot i586 i686 noarch setup

#!/bin/bash

#Mount the CDs in loopback mode:
mkdir CD1 CD2 CD3 CD4 CD5

mount SUSE-Linux-10.1-GM-i386-CD1.iso CD1 -o loop
mount SUSE-Linux-10.1-GM-i386-CD2.iso CD2 -o loop
mount SUSE-Linux-10.1-GM-i386-CD3.iso CD3 -o loop
mount SUSE-Linux-10.1-GM-i386-CD4.iso CD4 -o loop
mount SUSE-Linux-10.1-GM-i386-CD5.iso CD5 -o loop

# Create a basic structure to overwrite files we need to modify for the CD (the checksums and boot files).
cp -a CD1/boot .
mkdir i586 i686 noarch setup

# Create the NEW MD5SUMS as one file in order to allow SuSE to validate (thus install) all of the files from every CD and not just CD #1
# For the i586 directory:
cat CD1/suse/i586/MD5SUMS CD2/suse/i586/MD5SUMS CD3/suse/i586/MD5SUMS \
CD4/suse/i586/MD5SUMS CD5/suse/i586/MD5SUMS > i586/MD5SUMS
# For the i686 directory:
cat CD1/suse/i686/MD5SUMS CD2/suse/i686/MD5SUMS > i686/MD5SUMS
# For the noarch directory:
cat CD1/suse/noarch/MD5SUMS CD2/suse/noarch/MD5SUMS CD3/suse/noarch/MD5SUMS \
CD4/suse/noarch/MD5SUMS CD5/suse/noarch/MD5SUMS > noarch/MD5SUMS

# Now, create the ISO:
mkisofs -o SuSE_10.1.iso \
-b boot/i386/loader/isolinux.bin \
-c boot/i386/loader/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table -l -P SuSE -r -T -V SuSE_10.1 \
-x CD1/boot -x CD1/suse/i586/MD5SUMS -x CD1/suse/noarch/MD5SUMS -x CD1/suse/i686/MD5SUMS \
-x CD2/suse/i686/MD5SUMS -x CD2/suse/i586/MD5SUMS -x CD2/suse/noarch/MD5SUMS \
-x CD3/suse/i586/MD5SUMS -x CD3/suse/noarch/MD5SUMS \
-x CD4/suse/i586/MD5SUMS -x CD4/suse/noarch/MD5SUMS \
-x CD5/suse/i586/MD5SUMS -x CD5/suse/noarch/MD5SUMS \
-x CD6/suse/i586/MD5SUMS -x CD6/suse/noarch/MD5SUMS \
-graft-points CD1 boot/=boot \
suse/i586/MD5SUMS=i586/MD5SUMS suse/noarch/MD5SUMS=noarch/MD5SUMS suse/i686/MD5SUMS=i686/MD5SUMS \
suse/=CD2/suse suse/=CD3/suse \
suse/=CD4/suse suse/=CD5/suse \
media.2/=CD2/media.2 media.3/=CD3/media.3 media.4/=CD4/media.4 \
media.5/=CD5/media.5

umount CD1 CD2 CD3 CD4 CD5
rm -R boot i586 i686 noarch setup

< Previous Next >
This Thread
  • No further messages