Minor fixes
This commit is contained in:
parent
783cc7774f
commit
a4b5877607
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash -e
|
||||||
# build_pxe_boot.sh - Create a PXE boot environment
|
# build_pxe_boot.sh - Create a PXE boot environment
|
||||||
#
|
#
|
||||||
# build_pxe_boot.sh [-k kernel-version] destdir
|
# build_pxe_boot.sh [-k kernel-version] destdir
|
||||||
@ -54,6 +54,7 @@ if [ ! -r $OPWD/pxe/vmlinuz-${KVER} ]; then
|
|||||||
fi
|
fi
|
||||||
cp -p $OPWD/pxe/vmlinuz-${KVER} $DEST_DIR/ubuntu
|
cp -p $OPWD/pxe/vmlinuz-${KVER} $DEST_DIR/ubuntu
|
||||||
if [ ! -r $OPWD/pxe/stack-initrd.gz ]; then
|
if [ ! -r $OPWD/pxe/stack-initrd.gz ]; then
|
||||||
|
cd $OPWD
|
||||||
sudo $PROGDIR/build_pxe_ramdisk.sh $OPWD/pxe/stack-initrd.gz
|
sudo $PROGDIR/build_pxe_ramdisk.sh $OPWD/pxe/stack-initrd.gz
|
||||||
fi
|
fi
|
||||||
cp -p $OPWD/pxe/stack-initrd.gz $DEST_DIR/ubuntu
|
cp -p $OPWD/pxe/stack-initrd.gz $DEST_DIR/ubuntu
|
||||||
|
@ -44,7 +44,7 @@ while getopts CIhmr:s: c; do
|
|||||||
done
|
done
|
||||||
shift `expr $OPTIND - 1`
|
shift `expr $OPTIND - 1`
|
||||||
|
|
||||||
if [ ! "$#" -eq "2" -o -n $CHROOTONLY -a -n $IMAGEONLY ]; then
|
if [ ! "$#" -eq "2" -o -n "$CHROOTONLY" -a -n "$IMAGEONLY" ]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user