Make sure that we also actually take 2.6 kernel images if DI_DIR is set
This commit is contained in:
parent
452b0ec0a6
commit
7c7e23faf9
|
@ -36,7 +36,7 @@ rm -rf boot1
|
|||
inst=boot1
|
||||
|
||||
# Setup directories
|
||||
mkdir -p $inst/boot/2.6
|
||||
mkdir -p $inst/boot
|
||||
|
||||
silo_deb=$MIRROR/`zcat $MIRROR/dists/$DI_CODENAME/main/binary-sparc/Packages.gz | \
|
||||
awk '/^Filename: .*\/silo/ {print $2}'`
|
||||
|
@ -62,16 +62,16 @@ if [ ! "$DI_WWW_HOME" ];then
|
|||
fi
|
||||
else
|
||||
DI_DIR="."
|
||||
|
||||
mkdir ./2.6
|
||||
DI_WWW_HOME=$DI_WWW_HOME/2.6
|
||||
wget "$DI_WWW_HOME" -O di.dir
|
||||
sparc32=$(sed -n 's/.*a href="\(vmlinuz-.*-sparc32\)".*/\1/p' ./di.dir)
|
||||
sparc64=$(sed -n 's/.*a href="\(vmlinuz-.*-sparc64\)".*/\1/p' ./di.dir)
|
||||
wget "$DI_WWW_HOME/$sparc32" -O ./vmlinuz-x-sparc32
|
||||
wget "$DI_WWW_HOME/$sparc64" -O ./vmlinuz-x-sparc64
|
||||
wget "$DI_WWW_HOME/initrd.gz"
|
||||
wget "$DI_WWW_HOME" -O ./2.6/di.dir
|
||||
sparc32=$(sed -n 's/.*a href="\(vmlinuz-.*-sparc32\)".*/\1/p' ./2.6/di.dir)
|
||||
sparc64=$(sed -n 's/.*a href="\(vmlinuz-.*-sparc64\)".*/\1/p' ./2.6/di.dir)
|
||||
wget "$DI_WWW_HOME/$sparc32" -O ./2.6/vmlinuz-x-sparc32
|
||||
wget "$DI_WWW_HOME/$sparc64" -O ./2.6/vmlinuz-x-sparc64
|
||||
wget "$DI_WWW_HOME/initrd.gz" -O ./2.6/initrd.gz
|
||||
fi
|
||||
|
||||
cp "$DI_DIR"/initrd.gz "$inst/boot/initrd.gz"
|
||||
cp "$DI_DIR"/vmlinuz-*-sparc32 "$inst/boot/sparc32"
|
||||
zcat "$DI_DIR"/vmlinuz-*-sparc64 > "$inst/boot/sparc64"
|
||||
cp "$DI_DIR"/2.6/initrd.gz "$inst/boot/initrd.gz"
|
||||
cp "$DI_DIR"/2.6/vmlinuz-*-sparc32 "$inst/boot/sparc32"
|
||||
zcat "$DI_DIR"/2.6/vmlinuz-*-sparc64 > "$inst/boot/sparc64"
|
||||
|
|
Loading…
Reference in New Issue