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

« back to all changes in this revision

Viewing changes to tools/boot/woody/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
 
# boot-powerpc version 0.7 (C)  Hartmut Koptein <koptein@debian.org>,
4
 
# PReP support (C)  Matt Porter <porter@debian.org>
5
 
#
6
 
# Released under GPL 1 Mar 1999
7
 
# See the file COPYING for license details
8
 
# Released as part of the debian_cd package, not much use standalone
9
 
#
10
 
# Do install stuff for powerpc, including making bootable CDs
11
 
#
12
 
# $1 is the CD number
13
 
# $2 is the temporary CD build dir
14
 
 
15
 
. $BASEDIR/tools/boot/$CODENAME/common.sh
16
 
 
17
 
set -e
18
 
 
19
 
N=$1
20
 
CDROOT=$2
21
 
 
22
 
cd $CDROOT/..
23
 
 
24
 
# Only disk 1* bootable
25
 
if [ $N != 1 -a $N != 1_NONUS ]; then
26
 
    # we don't need HFS cruft on anything but CD 1
27
 
        #echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \
28
 
        #        > $N.mkisofs_opts
29
 
        :> $N.mkisofs_opts
30
 
        exit 0
31
 
fi
32
 
 
33
 
install_languages $CDROOT
34
 
 
35
 
echo -n "--netatalk -hfs -probe -map $BASEDIR/data/hfs.map" \
36
 
        > $N.mkisofs_opts
37
 
echo -n " -prep-boot install/prep/boot.bin" >> $N.mkisofs_opts
38
 
# For newworld Mac booting  - Note, no spaces in volid!
39
 
case "$MKISOFS" in
40
 
    *mkhybrid)
41
 
    echo -n " -part -no-desktop -hfs-volid Debian/PowerPC_${CODENAME}" \
42
 
            >> $N.mkisofs_opts
43
 
    ;;
44
 
    *mkisofs)
45
 
    echo -n " -part -no-desktop -hfs-bless CD$N/install/powermac -hfs-volid Debian/PowerPC_${CODENAME}" \
46
 
            >> $N.mkisofs_opts
47
 
    ;;
48
 
    *)
49
 
    echo 1>&2 "Only mkhybrid or mkisofs can be used"
50
 
    exit 1
51
 
    ;;
52
 
esac
53
 
 
54
 
DISKSROOT="$MIRROR/dists/$CODENAME/main/disks-$ARCH/current"
55
 
INSTALLDIR="$CDROOT/install"
56
 
 
57
 
# Debian/PowerPC consits currently for three parts: CHRP, PMac and PReP
58
 
# Apus, MBX and BBox will hopefully follow
59
 
#
60
 
# -- We need a generic boot-loader --
61
 
# -- (We wish) --
62
 
#
63
 
cd $INSTALLDIR
64
 
 
65
 
#-------------- Install paths -------------------------------
66
 
# $DISKSROOT  == dists/potato/main/disks-powerpc/current/
67
 
# $INSTALLDIR == install/
68
 
#
69
 
# The layout has changed. Images are now in $SUBARCH/images-1.44
70
 
#
71
 
 
72
 
cd $INSTALLDIR
73
 
 
74
 
# Section for the base, rescue and drivers into the /install/
75
 
# area on the cd.
76
 
 
77
 
#--------------- APUS - Stuff -------------------------------
78
 
#echo Installing APUS files
79
 
mkdir apus
80
 
cp -f $DISKSROOT/apus/linux.bin apus
81
 
cp -f $DISKSROOT/apus/images-1.44/root.bin apus
82
 
cp -f $DISKSROOT/apus/images-1.44/rescue.bin apus
83
 
 
84
 
#--------------- CHRP - Stuff -------------------------------
85
 
echo Installing CHRP files
86
 
mkdir chrp
87
 
cp -f $DISKSROOT/chrp/linux.bin chrp
88
 
cp -f $DISKSROOT/chrp/images-1.44/root.bin chrp
89
 
cp -f $DISKSROOT/chrp/images-1.44/rescue.bin chrp
90
 
 
91
 
#-------------- Common - Stuff ------------------------------
92
 
#echo Installing Common files
93
 
#mkdir common
94
 
#cp -f $DISKSROOT/common/linux common
95
 
#cp -f $DISKSROOT/common/images-1.44/root.bin common
96
 
#cp -f $DISKSROOT/common/images-1.44/rescue.bin common
97
 
 
98
 
#---------------- MBX - Stuff -------------------------------
99
 
#echo Installing MBX files
100
 
#mkdir mbx
101
 
#cp -f $DISKSROOT/mbx/linux mbx
102
 
#cp -f $DISKSROOT/mbx/images-1.44/root.bin mbx
103
 
#cp -f $DISKSROOT/mbx/images-1.44/rescue.bin mbx
104
 
 
105
 
#--------------- PMac - Stuff -------------------------------
106
 
echo Installing Power-Macintosh files
107
 
mkdir powermac
108
 
cp -f $DISKSROOT/powermac/linux.bin powermac/vmlinux
109
 
cp -f $DISKSROOT/new-powermac/linux.bin powermac/vmlinux2.4
110
 
cp -f $DISKSROOT/powermac/images-1.44/root.bin powermac/
111
 
cp -f $DISKSROOT/powermac/images-1.44/boot-floppy-hfs.img powermac/
112
 
 
113
 
cp -f $DISKSROOT/powermac/BootX* powermac/
114
 
cp -f $DISKSROOT/powermac/bootvars* powermac/
115
 
 
116
 
# Completely useless!  It's an ext2 floppy... how is that supposed to boot?
117
 
# cp -f $DISKSROOT/powermac/images-1.44/rescue.bin powermac/
118
 
 
119
 
# New-world bootability
120
 
# This works in a subdirectory via an ugly hack; fix yaboot.
121
 
cat $BASEDIR/data/woody/yaboot/yaboot.conf \
122
 
 | sed "s/CODENAME/${CODENAME}/g" > powermac/yaboot.conf
123
 
cp -f $BASEDIR/data/yaboot/ofboot.b powermac/
124
 
 
125
 
# Extract yaboot from the archive
126
 
if [ -z "$YABOOT_DEBUG" ]; then
127
 
    YADEB="$($BASEDIR/tools/apt-selection cache show yaboot | \
128
 
           grep ^Filename | awk '{print $2}')"
129
 
    (ar p "${MIRROR}/${YADEB}" data.tar.gz | \
130
 
        tar zxf - -C powermac ./usr/lib/yaboot/yaboot)
131
 
    mv powermac/usr/lib/yaboot/yaboot powermac/yaboot
132
 
    rm -rf powermac/usr
133
 
else
134
 
 cp -f $YABOOT_DEBUG powermac/yaboot
135
 
fi
136
 
cp -f $BASEDIR/data/woody/yaboot/boot.msg powermac/
137
 
 
138
 
#--------------- PReP - Stuff -------------------------------
139
 
echo Installing PReP files
140
 
mkdir prep
141
 
cp -f $DISKSROOT/prep/linux.bin prep
142
 
cp -f $DISKSROOT/prep/images-1.44/boot.bin prep
143
 
cp -f $DISKSROOT/prep/images-1.44/root.bin prep
144
 
cp -f $DISKSROOT/prep/images-1.44/rescue.bin prep
145
 
 
146
 
#=============== fix a few things up... =====================
147
 
echo Installing PowerPC FAQ and tools
148
 
#mkdir common
149
 
#mv basecont.txt.info common
150
 
#mv ../README.info ../README.powerpc.info
151
 
#cp -f ../README.1ST.info ../README.multicd.info
152