-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild_iso.sh
More file actions
executable file
·37 lines (28 loc) · 886 Bytes
/
build_iso.sh
File metadata and controls
executable file
·37 lines (28 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/sh
if [ -z $TOPDIR ] ; then
echo "you must define TOPDIR"
exit
fi
oldpwd=`pwd`
# go to the top directory of the future CD
cd $TOPDIR/cdtree
#first we need to get rid of editor save files
find $TOPDIR/cdtree -name "*~" -exec rm -f {} \;
# and create the CD image
# you can fill in the info below as follows if you like
# -p "preparer id" - that's your email, for example
# -P "publisher_id" - again you
# -A "Application_id"
echo -n "Creating the CD iso image, $TOPDIR/$BOOTCDNAME ... "
echo
mkisofs -b isolinux/isolinux.bin -c isolinux/boot.cat \
-o $TOPDIR/$BOOTCDNAME \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-J -r \
-p "keithdhedger@gmail.com" \
-A "LFS CD Build System" \
.
echo "done"
# go back where we came from
cd $oldpwd
# now we can burn this image to a cd.