~mythbuntu/mythbuntu/mythbuntu-livedisk

« back to all changes in this revision

Viewing changes to mythbuntu_install.sh

  • Committer: Mario Limonciello
  • Date: 2008-11-11 07:07:19 UTC
  • Revision ID: superm1@ubuntu.com-20081111070719-4auhe6ioskz4nglo
add comments for each step

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
echo "Using livefs found in $LIVEFS_LOCATION"
143
143
ls -alh $LIVEFS_LOCATION/livecd.mythbuntu.squashfs
144
144
 
 
145
echo "-------------+--+-++-+--+-------------------"
145
146
echo "Starting cleanup for Mythbuntu build, `date`"
 
147
echo "--------------++-+--+-++--------------------"
146
148
rm -rf $BASE_INSTALL/*
147
149
 
148
150
#Step 1 - create directory structure
 
151
echo "-------------+--+-++-+--+-------------------"
 
152
echo "Populating directory structure"
 
153
echo "--------------++-+--+-++--------------------"
149
154
mkdir -p $BASE_INSTALL/casper
150
155
mkdir -p $BASE_INSTALL/programs
151
156
mkdir -p $BASE_INSTALL/isolinux
153
158
cd $BASE_INSTALL
154
159
 
155
160
#Step 2 - Create .disk directory so casper can function
 
161
echo "-------------+--+-++-+--+-------------------"
 
162
echo "Preparing casper"
 
163
echo "--------------++-+--+-++--------------------"
156
164
cat > .disk/info <<EOF
157
165
$TITLE_STRING
158
166
EOF
161
169
EOF
162
170
 
163
171
#Step 3 - Grab precompiled applications and documentation
 
172
echo "-------------+--+-++-+--+-------------------"
 
173
echo "Grabbing precompiled windows apps and docs"
 
174
echo "--------------++-+--+-++--------------------"
164
175
wget http://www.baablogic.net/mythbuntu/mythbuntu_umenu.tar
165
176
wget http://people.ubuntu.com/~evand/wubi/stable -O wubi.exe
166
177
wget http://www.mythbuntu.org/documentation/mythbuntu_${VERSION}_installation.pdf || true
169
180
 
170
181
#Step 4 - Create on CD repository somehow
171
182
if [ "$CDREPOSITORY" = "true" ]; then
 
183
    echo "-------------+--+-++-+--+-------------------"
 
184
    echo "Building on CD repository"
 
185
    echo "--------------++-+--+-++--------------------"
172
186
    mkdir -p $BASE_INSTALL/dists/$BASE_RELEASE/main/binary-$ARCHITECTURE
173
187
    mkdir -p $BASE_INSTALL/dists/$BASE_RELEASE/main/source
174
188
    mkdir -p $BASE_INSTALL/pool/main
196
210
fi
197
211
 
198
212
#Step 5 - Populate casper w/ livefs content
 
213
echo "-------------+--+-++-+--+-------------------"
 
214
echo "Populating squashfs"
 
215
echo "--------------++-+--+-++--------------------"
199
216
cp -L $LIVEFS_LOCATION/livecd.mythbuntu.squashfs casper/filesystem.squashfs
200
217
cp -L $LIVEFS_LOCATION/livecd.mythbuntu.initrd casper/initrd.gz
201
218
cp -L $LIVEFS_LOCATION/livecd.mythbuntu.kernel casper/vmlinuz
203
220
cp -L $LIVEFS_LOCATION/livecd.mythbuntu.manifest-desktop casper/filesystem.manifest-desktop
204
221
 
205
222
#Step 6 - Populate splash screen
 
223
echo "-------------+--+-++-+--+-------------------"
 
224
echo "Populating splash screen"
 
225
echo "--------------++-+--+-++--------------------"
206
226
cp -R $PWD/* .
207
227
 
208
228
#Step 7 - Populate memdisk
 
229
echo "-------------+--+-++-+--+-------------------"
 
230
echo "Populating memory tester"
 
231
echo "--------------++-+--+-++--------------------"
209
232
cp /boot/memtest86+.bin install/mt86plus
210
233
 
211
234
#Step 8 - Create md5sums
 
235
echo "-------------+--+-++-+--+-------------------"
 
236
echo "Creating md5sums of all files"
 
237
echo "--------------++-+--+-++--------------------"
212
238
find . -type f -print0 | xargs -0 md5sum | sed /md5sum/d | sed /boot.cat/d | sed /isolinux.bin/d > md5sum.txt
213
239
 
214
240
#Step 9 - Generate ISO
 
241
echo "-------------+--+-++-+--+-------------------"
 
242
echo "Generating ISO image"
 
243
echo "--------------++-+--+-++--------------------"
215
244
mkisofs    \
216
245
 -r    \
217
246
 -V "Mythbuntu $VERSION"    \