* Fix up boot-alpha to calculate the size of the ramdisk needed, rather
than hard-coding to 16384. Also slight refactoring.
This commit is contained in:
parent
43d4a7d96a
commit
64bd969a0c
|
@ -5,6 +5,8 @@ debian-cd (3.0.2) UNRELEASED; urgency=high
|
|||
* Other small wording changes and fixes in the README file
|
||||
* Fix up the Debian_etch, Debian_etch-kde and Debian_etch-xfce
|
||||
to use debian-installer+kernel-etch rather than -sid
|
||||
* Fix up boot-alpha to calculate the size of the ramdisk needed, rather
|
||||
than hard-coding to 16384. Also slight refactoring.
|
||||
|
||||
-- Steve McIntyre <93sam@debian.org> Sun, 18 Mar 2007 22:09:44 +0000
|
||||
|
||||
|
|
|
@ -75,13 +75,14 @@ if [ $NN = 1 ]; then
|
|||
echo "Using $THISTYPE boot-disks image on CD$N"
|
||||
mkdir -p boot$N/boot
|
||||
cp initrd.gz vmlinuz boot$N/boot/
|
||||
|
||||
mkdir -p boot$N/etc
|
||||
cat <<EOF > boot$N/etc/aboot.conf
|
||||
0:boot/vmlinuz ramdisk_size=16384 initrd=/boot/initrd.gz root=/dev/ram devfs=mount,dall
|
||||
1:boot/vmlinuz ramdisk_size=16384 initrd=/boot/initrd.gz root=/dev/ram devfs=mount,dall console=ttyS0
|
||||
2:boot/vmlinuz ramdisk_size=16384 initrd=/boot/initrd.gz root=/dev/ram devfs=mount,dall console=ttyS1
|
||||
EOF
|
||||
|
||||
RSIZE=$(expr $(zcat boot$N/boot/initrd.gz | wc --bytes) / 1024)
|
||||
OPTS="ramdisk_size=$RSIZE initrd=/boot/initrd.gz root=/dev/ram devfs=mount,dall"
|
||||
|
||||
echo "0:boot/vmlinuz $OPTS" > boot$N/etc/aboot.conf
|
||||
echo "1:boot/vmlinuz $OPTS console=ttyS0" >> boot$N/etc/aboot.conf
|
||||
echo "2:boot/vmlinuz $OPTS console=ttyS1" >> boot$N/etc/aboot.conf
|
||||
|
||||
mkdir -p boot$N/milo
|
||||
|
||||
|
|
Loading…
Reference in New Issue