3
# Install files in /install and some in /doc
6
# The location of the tree for CD#1, passed in
9
if [ "$CDIMAGE_INSTALL_BASE" = 1 ]; then
12
if [ -n "$BOOTDISKS" -a -e $BOOTDISKS/current/$DOCDIR ] ; then
13
DOCS=$BOOTDISKS/current/$DOCDIR
14
elif MANUALDEB="$($BASEDIR/tools/apt-selection cache show "installation-guide-$ARCH")"; then
15
MANUALDEB="$(echo "$MANUALDEB" | grep ^Filename | awk '{print $2}')"
17
echo "WARNING: Using $DI_CODENAME bootdisk documentation"
18
DOCS=$MIRROR/dists/$DI_CODENAME/main/installer-$ARCH/current/$DOCDIR
21
# Put the install documentation in /doc/install
22
if [ "$DOCS" ] && [ -d "$DOCS" ]; then
24
mkdir -p $DIR/$DOCDIR/install
25
if ! cp -a * $DIR/$DOCDIR/install; then
26
echo "ERROR: Unable to copy installer documentation to CD."
28
elif [ "$MANUALDEB" ]; then
29
mkdir -p "$DIR/$DOCDIR/install/tmp" "$DIR/$DOCDIR/install/manual"
30
ar p "$MIRROR/$MANUALDEB" data.tar.gz | tar xzf - -C "$DIR/$DOCDIR/install/tmp"
31
mv "$DIR/$DOCDIR/install/tmp/usr/share/doc/installation-guide-$ARCH"/* "$DIR/$DOCDIR/install/manual/"
32
rm -rf "$DIR/$DOCDIR/install/tmp"
33
# just keep the HTML version
34
rm -f "$DIR/$DOCDIR/install/manual/copyright" \
35
"$DIR/$DOCDIR/install/manual/changelog.gz" \
36
"$DIR/$DOCDIR/install/manual"/*/install.*.pdf* \
37
"$DIR/$DOCDIR/install/manual"/*/install.*.txt*
39
echo "ERROR: Unable to copy installer documentation to CD."
43
# Preseed files for special install types
45
PRESEED_ROOT=$BASEDIR/data/$CODENAME/preseed
47
$PRESEED_ROOT $PRESEED_ROOT/$ARCH \
48
$PRESEED_ROOT/$PROJECT $PRESEED_ROOT/$PROJECT/$ARCH; do
49
[ -d "$preseed_dir" ] || continue
50
for file in $preseed_dir/*.seed; do
51
cp -a "$file" $DIR/preseed/
54
if [ "$CDIMAGE_DVD" = 1 ] && [ "$PROJECT" != ubuntu-server ]; then
55
# include server on normal DVDs
57
$PRESEED_ROOT/ubuntu-server $PRESEED_ROOT/ubuntu-server/$ARCH; do
58
[ -d "$preseed_dir" ] || continue
59
for file in $preseed_dir/*.seed; do
60
cp -a "$file" $DIR/preseed/