| ... | ... |
@@ -1,4 +1,4 @@ |
| 1 |
-#!/bin/bash |
|
| 1 |
+#!/bin/bash -e |
|
| 2 | 2 |
# build_pxe_boot.sh - Create a PXE boot environment |
| 3 | 3 |
# |
| 4 | 4 |
# build_pxe_boot.sh [-k kernel-version] destdir |
| ... | ... |
@@ -54,6 +54,7 @@ if [ ! -r $OPWD/pxe/vmlinuz-${KVER} ]; then
|
| 54 | 54 |
fi |
| 55 | 55 |
cp -p $OPWD/pxe/vmlinuz-${KVER} $DEST_DIR/ubuntu
|
| 56 | 56 |
if [ ! -r $OPWD/pxe/stack-initrd.gz ]; then |
| 57 |
+ cd $OPWD |
|
| 57 | 58 |
sudo $PROGDIR/build_pxe_ramdisk.sh $OPWD/pxe/stack-initrd.gz |
| 58 | 59 |
fi |
| 59 | 60 |
cp -p $OPWD/pxe/stack-initrd.gz $DEST_DIR/ubuntu |
| ... | ... |
@@ -62,19 +63,19 @@ cat >>$DEFAULT <<EOF |
| 62 | 62 |
LABEL devstack |
| 63 | 63 |
MENU LABEL ^devstack |
| 64 | 64 |
MENU DEFAULT |
| 65 |
- KERNEL ubuntu/vmlinuz-$KVER-generic |
|
| 65 |
+ KERNEL ubuntu/vmlinuz-$KVER |
|
| 66 | 66 |
APPEND initrd=ubuntu/stack-initrd.gz ramdisk_size=2109600 root=/dev/ram0 |
| 67 | 67 |
EOF |
| 68 | 68 |
|
| 69 | 69 |
# Get Ubuntu |
| 70 | 70 |
if [ -d $OPWD/pxe ]; then |
| 71 |
- cp -p $OPWD/pxe/natty-min-initrd.gz $DEST_DIR/ubuntu |
|
| 71 |
+ cp -p $OPWD/pxe/natty-base-initrd.gz $DEST_DIR/ubuntu |
|
| 72 | 72 |
fi |
| 73 | 73 |
cat >>$DEFAULT <<EOF |
| 74 | 74 |
|
| 75 | 75 |
LABEL ubuntu |
| 76 | 76 |
MENU LABEL ^Ubuntu Natty |
| 77 |
- KERNEL ubuntu/vmlinuz-$KVER-generic |
|
| 77 |
+ KERNEL ubuntu/vmlinuz-$KVER |
|
| 78 | 78 |
APPEND initrd=ubuntu/natty-base-initrd.gz ramdisk_size=419600 root=/dev/ram0 |
| 79 | 79 |
EOF |
| 80 | 80 |
|