We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 783cc77 commit a4b5877Copy full SHA for a4b5877
2 files changed
build_pxe_boot.sh
@@ -1,4 +1,4 @@
1
-#!/bin/bash
+#!/bin/bash -e
2
# build_pxe_boot.sh - Create a PXE boot environment
3
#
4
# build_pxe_boot.sh [-k kernel-version] destdir
@@ -54,6 +54,7 @@ if [ ! -r $OPWD/pxe/vmlinuz-${KVER} ]; then
54
fi
55
cp -p $OPWD/pxe/vmlinuz-${KVER} $DEST_DIR/ubuntu
56
if [ ! -r $OPWD/pxe/stack-initrd.gz ]; then
57
+ cd $OPWD
58
sudo $PROGDIR/build_pxe_ramdisk.sh $OPWD/pxe/stack-initrd.gz
59
60
cp -p $OPWD/pxe/stack-initrd.gz $DEST_DIR/ubuntu
make_image.sh
@@ -44,7 +44,7 @@ while getopts CIhmr:s: c; do
44
done
45
shift `expr $OPTIND - 1`
46
47
-if [ ! "$#" -eq "2" -o -n $CHROOTONLY -a -n $IMAGEONLY ]; then
+if [ ! "$#" -eq "2" -o -n "$CHROOTONLY" -a -n "$IMAGEONLY" ]; then
48
usage
49
50
0 commit comments