Browse Source

fixed Create-ISO do not yield error messages when no numbered disks are present

(e.g. only the install target is dumped into an ISO ...)


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2288 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 22 years ago
parent
commit
5d6095234a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      scripts/Create-ISO

+ 2
- 2
scripts/Create-ISO

@ -169,7 +169,7 @@ done < $dat
echo -n > $index
for x in 0 $disks ; do
dd=disk_${x}_data
for y in ${!dd} `cat ${pathspec}_${x}` ; do
for y in ${!dd} `cat ${pathspec}_${x} 2> /dev/null` ; do
to=${y%=*} ; from=${y#*=}
if [ -d $from ] ; then
find $from -printf "disk$x $to%P\\n" >> $index
@ -219,7 +219,7 @@ for x in $disks ; do
date "+ [%X] Creating ${isoprefix}_cd$x.iso ..."
echo "This is disk #$x." > $dat
# FIXME: current mkisofs does only accept one -path-list
cat ${pathspec}_${x} ${pathspec}_0 > ${pathspec}_current
cat ${pathspec}_${x} ${pathspec}_0 > ${pathspec}_current 2> /dev/null
xxx -q -r -T -J -l -o ${isoprefix}_cd$x.iso -A "ROCK Linux - Disk $x" \
-P 'The ROCK Linux Project - http://www.rocklinux.org' \
-path-list ${pathspec}_current \

Loading…
Cancel
Save