|
|
@ -13,6 +13,11 @@ |
|
|
|
# If you want to add multiple 'BOOT' lines, use the tag-name 'BOOTx' for |
|
|
|
# the 2nd and all further lines. |
|
|
|
# |
|
|
|
# SCRIPT script-name Run given script on each image |
|
|
|
# |
|
|
|
# Intended for image post-processing - like needed for IBM RS/6k boot |
|
|
|
# blessing. The first argument is the CD number - the second the image file. |
|
|
|
# |
|
|
|
|
|
|
|
if [ $# -eq 0 ] ; then |
|
|
|
echo |
|
|
@ -88,6 +93,7 @@ add() { |
|
|
|
} |
|
|
|
|
|
|
|
bootoptions="" |
|
|
|
scripts="" |
|
|
|
while read tag data ; do |
|
|
|
if [ $tag = BOOT ] ; then |
|
|
|
if [ "$bootoptions" ] ; then |
|
|
@ -96,6 +102,8 @@ while read tag data ; do |
|
|
|
else |
|
|
|
bootoptions="$data" |
|
|
|
fi |
|
|
|
elif [ $tag = SCRIPT ] ; then |
|
|
|
scritps="$scripts '$data'" |
|
|
|
fi |
|
|
|
done < $dat |
|
|
|
while read tag data ; do |
|
|
@ -204,7 +212,14 @@ for x in $disks ; do |
|
|
|
-P 'The ROCK Linux Project - http://www.rocklinux.org' \ |
|
|
|
$bootoptions -graft-points disk$x.txt=$dat $disk_0_data ${!dd} |
|
|
|
bootoptions="" |
|
|
|
|
|
|
|
|
|
|
|
if [ "$scripts" ] ; then |
|
|
|
echo "Running post-processing scripts on image ..." |
|
|
|
for script in $scripts ; do |
|
|
|
sh $script $x ${isoprefix}_cd$x.iso |
|
|
|
done |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$mkdebug" = 1 ] ; then |
|
|
|
cat > ${isoprefix}_loop$x.sh << EOT |
|
|
|
#!/bin/sh |
|
|
|