add an attempted fallback to genisoimage if mkisofs doesn't exist on the system. (debian no longer ships mkisofs) genisoimage is based on an older version of mkisofs and has issues with long filenames. The genisoimage iso-level override makes the image work and allows long filenames but may introduce issues? placed a warning to the user that genisoimage is a fallback
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41735 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -313,9 +313,20 @@ if [ $isCD ]; then
|
||||
echo "Copying boot image ..."
|
||||
$cp "$cdBootFloppy" "$outputDir"
|
||||
|
||||
# build the iso image
|
||||
echo "Building CD image ..."
|
||||
mkisofs -uid 0 -gid 0 -b `basename $cdBootFloppy` -R -V "$cdLabel" -o "$cdImagePath" "$tPrefix"
|
||||
if [ $(which mkisofs) ]; then
|
||||
# build the iso image using mkisofs
|
||||
echo "Building CD image (mkisofs)..."
|
||||
mkisofs -uid 0 -gid 0 -b `basename $cdBootFloppy` -R -V "$cdLabel" -o "$cdImagePath" "$tPrefix"
|
||||
elif [ $(which genisoimage) ]; then
|
||||
# build the iso image using genisoimage
|
||||
echo "Building CD image (genisoimage)..."
|
||||
echo "WARNING: genisoimage fallback has known problems with long filenames!"
|
||||
echo " Please install mkisofs before making production releases!"
|
||||
genisoimage -r -iso-level 4 -b `basename $cdBootFloppy` -V "$cdLabel" -o "$cdImagePath" "$tPrefix"
|
||||
else
|
||||
echo "you need mkisofs (preferred) or genisoimage to create a CD image."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# cleanup output dir
|
||||
$rmAttrs -rf "$outputDir"
|
||||
|
||||
Reference in New Issue
Block a user