Cope with debian-installer powerpc image rearrangement.

This commit is contained in:
Colin Watson 2004-07-26 20:41:22 +00:00
parent 625c8eaf24
commit 04e512c3f1
2 changed files with 14 additions and 1 deletions

1
debian/changelog vendored
View File

@ -118,6 +118,7 @@ debian-cd (2.2.18) UNRELEASED; urgency=low
- Remove -safe options from powerpc yaboot menu, as they caused
combinatorial explosion. Instead, document video=ofonly in boot.msg.
- Clarify powerpc boot.msg a bit.
- Cope with debian-installer powerpc image rearrangement.
* Sven Luther
- fixed powerpc list so it includes the 2.6 kernels too as well as the
power3 and power4 2.4 kernels.

View File

@ -72,8 +72,20 @@ do
else
DI_DIR="di_stuff"
wget -r -nd --no-parent --level=1 -P "$DI_DIR" "$DI_WWW_HOME/$subarch/cdrom/"
# One of these two wgets will fail; the price of maintaining
# compatibility. The 2.4/2.6 duplication can go away once the new
# debian-installer image layout reaches sarge.
wget -r -nd --no-parent --level=1 -P "$DI_DIR/2.4" "$DI_WWW_HOME/$subarch/cdrom/2.4/"
wget -r -nd --no-parent --level=1 -P "$DI_DIR/2.6" "$DI_WWW_HOME/$subarch/cdrom/2.6/"
rm -f "$DI_DIR"/index* "$DI_DIR/2.6"/index*
rm -f "$DI_DIR"/index* "$DI_DIR/2.4"/index* "$DI_DIR/2.6"/index*
if [ -d "$DI_DIR/2.6" ]; then
# Cope with old debian-installer image layout from before 2.6
# became the default.
mkdir -p "$DI_DIR/2.4"
find "$DI_DIR" -type f -maxdepth 1 | xargs -r mv --target-directory="$DI_DIR/2.4"
find "$DI_DIR/2.6" -type f -maxdepth 1 | xargs -r mv --target-directory="$DI_DIR"
rm -rf "$DI_DIR/2.6"
fi
fi
cp -a "$DI_DIR" "$subarch"
rm -rf di_stuff