~ubuntu-branches/ubuntu/intrepid/debian-cd/intrepid

« back to all changes in this revision

Viewing changes to tools/boot/lenny/boot-powerpc

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre, Frans Pop, Otavio Salvador, Steve McIntyre, Jérémy Bobbio, Joey Hess, Raphael Hertzog
  • Date: 2008-03-17 23:16:20 UTC
  • mfrom: (3.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080317231620-8mcjlfmu1eo5su7k
Tags: 3.0.4
[ Frans Pop ]
* Disable debugging output in boot scripts.

[ Otavio Salvador ]
* Applied patch from Robert Millan <rmh@aybabtu.com> to integrate
  win32-loader. Closes: #440220.
* Applied patch from Robert Millan <rmh@aybabtu.com> to fix image
  generation with read-only mirrors. Closes: #441397.
* Applied patch from Robert Millan <rmh@aybabtu.com> to use win32-loader
  for autorun when CD is being used on Windows. Closes: #441846.
* Exclude dhcp-client-udeb since it's not being used and transition for
  dhcp3-client-udeb has over.
* Exclude multipath-udeb and libaio1-udeb since they're not being use
  yet.
* Fix autorun.inf generation when win32-loader is present.
* Applied patch from Nicolas François <nicolas.francois@centraliens.net>
  to allow README.html translation using po4a.
* Remove the 'Last Modified' date from data/lenny/README.html.in since
  it's useless.
* Use DEBOOTSTRAP_SCRIPT, BASE_INCLUDE and BASE_EXCLUDE variables to
  calculate the base packages set
* Hide image creation command if not using verbosing make

[ Steve McIntyre ]
* Make daily i386/amd64 lenny builds work again - don't attempt to copy
  the win32-loader files into place if they don't exist.
* Remove Depends: on sysutils. Closes: #437497 (again)

[ Jérémy Bobbio ]
* README.html: Integrate a new look for README.html done by Kalle Söderman.
  Huge thanks to him!
* README: Improve the wording when building a netinst or business card by
  being a little bit more specific than just saying: CD 1 out of 1.  This
  meant adding new defines "DISKTYPE$DISKTYPE".

[ Joey Hess ]
* Include dmraid deb. Closes: #443991
* Add acpi-support-base to generate_di+k_list.

[ Steve McIntyre ]
* Newer versions of debootstrap have moved the scripts from /usr/lib to
  /usr/share. Add a sym-link to cope - let's keep compatible with etch
  as much as possible. Also, log what debootstrap told us (in
  debootstrap-list) rather than just including the results directly in
  rawlist.

[ Frans Pop ]
* build_all.sh: don't source CONF.sh after already sourcing $CF earlier.
* CONF.sh: add non-invasive option to avoid sourcing CONF.sh twice when
  using wrapper scripts.
* CONF.sh: Don't set MAXCDS by default; was probably changed by accident.
* boot-{mipsel,sparc}: Parse website directory index case insensitive so
  that both "<a href=" and "<A HREF=" are recognized.
* Include busybox for architectures that use initramfs-tools; base-installer
  will try to install it.
* tools/update_tasks: ignore comments and blank lines in tasks/task.list.
* tasks/task.list*
  - add missing l10n tasks: gujarati-desktop, malayalam-desktop, tamil
  - comment out l10n tasks for languages not supported in D-I, for
    Icelandic, Irish, Serbian, Welsh and Xhosa
* lenny tasks: update for current task lists; set svn:keywords so the date
  header gets updated.
* Instead of including all alternative dependencies in list2cds, only
  include the first one. This reduces the size of the netinst and improves
  what's included on CD1. Only loss is console-{data,common,tools} so these
  are now added in generate_di+k_list. Reduces impact of #410418.
* exclude-udebs: exclude any libdirectfb udeb instead of particular version.
* exclude-udebs: exclude kbd-udeb and console-setup udebs (not yet used).
* During installation debootstrap will complain about an invalid Release file
  if there is no Packages file for the local section. Create an empty Packages
  file if one is missing.
* start_new_disc: make multi-arch CD/DVDs and CD/DVDs that are not part of a
  set (e.g. KDE/Xfce CDs) recognizable through info in .disk directory.
* Makefile: debootstrap no longer accepts options with empty values; change
  the way include/exclude options are passed accordingly.

[ Steve McIntyre ]
* Significant cleanup of list2cds. Closes: #451237
* tools/imagesums: use newer features in latest mkisofs/genisoimage to grab
  pre-calculated MD5 and SHA1 checksums directly from the jigdo file.

[ Otavio Salvador ]
* Make sure we include laptop-detect on arches that are know to have
  laptops (i386, amd64 and powerpc).
* Make sure we include grub-pc since it's used when GPT disk label is
  chosen.

[ Steve McIntyre ]
* Fix a bug in start_new_disc - cope with MAXCDS not being set.
* Temporarily disable boot support for arm CDs - the netwinder images are not
  being produced at the moment.

[ Raphael Hertzog ]
* Switch to genisoimage as default ISO generator as mkisofs has been dropped
  from Debian. Closes: #468850
* Add Vcs-Browser field.
* If genisomage is not available, try to fallback on mkisofs.
* New OMIT_DOC_TOOLS option to be able to work with mirrors that do not
  contain the doc and tools directories.

[ Frans Pop ]
* Ensure that the correct version of the Installation Guide is included.
* Lenny will be version 5.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
# Do install stuff for powerpc, including making bootable CDs
 
4
# Works with debian-installer
 
5
#
 
6
# $1 is the CD number
 
7
# $2 is the temporary CD build dir
 
8
 
 
9
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
 
10
 
 
11
set -e
 
12
#set -x
 
13
 
 
14
N=$1
 
15
CDDIR=$2
 
16
INSTALLDIR=$CDDIR/install
 
17
if [ "$DI_WWW_HOME" = "default" ];then
 
18
   DI_WWW_HOME="http://people.debian.org/~wouter/d-i/powerpc/daily"
 
19
   if [ -n "$DI_DIR" ];then
 
20
      DI_DIR="$DI_DIR/~${DI_WWW_HOME#*~}"
 
21
      DI_WWW_HOME=""
 
22
   fi
 
23
fi
 
24
if [ ! "$DI_DIST" ]; then
 
25
   DI_DIST="$DI_CODENAME"
 
26
fi
 
27
 
 
28
cd $CDDIR/..
 
29
 
 
30
install_languages $CDDIR
 
31
 
 
32
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--iso-level 2"
 
33
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--netatalk"
 
34
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
 
35
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-probe"
 
36
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
 
37
 
 
38
# Recommended size for a HFS Catalog is 4 megas per giga, defaults to 4 megas
 
39
# MAXDISKBLOCKS is measured in 2K blocks
 
40
newsize=`echo "$MAXDISKBLOCKS * 2048 / 256" | bc`
 
41
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize"
 
42
 
 
43
# Only disk 1* bootable
 
44
if [ $N != 1 ] ; then
 
45
        exit 0
 
46
fi
 
47
 
 
48
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--chrp-boot"
 
49
# For newworld Mac booting  - Note, no spaces in volid!
 
50
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-part"
 
51
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-desktop"
 
52
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-bless CD$N/install"
 
53
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-volid Debian/PowerPC_${CODENAME}"
 
54
 
 
55
cd $INSTALLDIR
 
56
# Extract yaboot from the archive
 
57
if [ -z "$YABOOT_DEBUG" ]; then
 
58
    YADEB="$($BASEDIR/tools/apt-selection cache show yaboot | \
 
59
           grep ^Filename | awk '{print $2}')"
 
60
    (ar p "${MIRROR}/${YADEB}" data.tar.gz | \
 
61
        tar zxf - -C . ./usr/lib/yaboot/yaboot)
 
62
    mv usr/lib/yaboot/yaboot .
 
63
    rm -rf usr
 
64
else
 
65
 cp -f $YABOOT_DEBUG yaboot
 
66
fi
 
67
 
 
68
#
 
69
# generate/download images for "powerpc"
 
70
# (missing: bootvars1.3b.sit.hqx, BootX_1.2.2.sit, boot-floppy-hfs.img)
 
71
cat $BASEDIR/data/$DI_CODENAME/yaboot/boot.msg \
 
72
 | sed "s/\${MEDIA_TYPE}/CDROM/" \
 
73
 | sed "s/\${DEBIAN_VERSION}/${CODENAME}/g" \
 
74
 | sed "s/\${BUILD_DATE}/${BUILD_DATE}/g" \
 
75
 > boot.msg
 
76
cat $BASEDIR/data/$DI_CODENAME/yaboot/yaboot.conf \
 
77
 | sed "s/CODENAME/${CODENAME}/g" > yaboot.conf
 
78
cp $BASEDIR/data/$DI_CODENAME/yaboot/ofboot.b ofboot.b
 
79
 
 
80
for subarch in powerpc powerpc64 prep
 
81
do
 
82
  case $subarch in
 
83
    powerpc|prep)
 
84
      bitness=
 
85
      ;;
 
86
    powerpc64)
 
87
      bitness=64
 
88
      ;;
 
89
  esac
 
90
  if [ ! "$DI_WWW_HOME" ];then
 
91
        if [ ! "$DI_DIR" ];then 
 
92
           DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
 
93
        fi
 
94
        if ! cp -a "$DI_DIR/$subarch/cdrom" "$subarch" && [ "$bitness" ]; then
 
95
           cp -a "$DI_DIR/$subarch/cdrom${bitness}" "$subarch"
 
96
        fi
 
97
  else
 
98
        if ! wget -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom/" && [ "$bitness" ]; then
 
99
           wget -r -nd --no-parent --level=1 -P "$subarch" -R 'index*' "$DI_WWW_HOME/$subarch/cdrom${bitness}/"
 
100
        fi
 
101
  fi
 
102
 
 
103
done
 
104
 
 
105
if [ -f prep/vmlinuz-prep.initrd ]; then
 
106
  add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-prep-boot install/prep/vmlinuz-prep.initrd"
 
107
elif [ -f powerpc/vmlinuz-prep.initrd ]; then
 
108
  # We are still missing this for prep
 
109
  add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-prep-boot install/powerpc/vmlinuz-prep.initrd"
 
110
fi
 
111
 
 
112
# Copy pegasos forth script, since pegasos machines don't support yaboot yet.
 
113
cat $BASEDIR/data/$DI_CODENAME/pegasos/pegasos \
 
114
 | sed "s/\${MEDIA_TYPE}/CDROM/" \
 
115
 | sed "s/\${DEBIAN_VERSION}/${CODENAME}/g" \
 
116
 | sed "s/\${BUILD_DATE}/${BUILD_DATE}/g" \
 
117
 > pegasos
 
118
 
 
119
# Let's copy the IBM CHRP stuff into place now.
 
120
cd $CDDIR
 
121
mkdir ppc
 
122
mkdir ppc/chrp
 
123
cp $BASEDIR/data/$DI_CODENAME/chrp/bootinfo.txt ppc
 
124
mkdir etc
 
125
cp $INSTALLDIR/yaboot.conf etc
 
126
 
 
127
exit 0