Fix kernel version issue
This commit is contained in:
parent
407ee7ee5e
commit
783cc7774f
@ -44,16 +44,17 @@ mkdir -p $DEST_DIR/ubuntu
|
|||||||
if [ ! -d $OPWD/pxe ]; then
|
if [ ! -d $OPWD/pxe ]; then
|
||||||
mkdir -p $OPWD/pxe
|
mkdir -p $OPWD/pxe
|
||||||
fi
|
fi
|
||||||
if [ ! -r $OPWD/pxe/vmlinuz-${KVER}-generic ]; then
|
if [ ! -r $OPWD/pxe/vmlinuz-${KVER} ]; then
|
||||||
if [ ! -r /boot/vmlinuz-${KVER}-generic ]; then
|
sudo chmod 644 /boot/vmlinuz-${KVER}
|
||||||
|
if [ ! -r /boot/vmlinuz-${KVER} ]; then
|
||||||
echo "No kernel found"
|
echo "No kernel found"
|
||||||
else
|
else
|
||||||
cp -p /boot/vmlinuz-${KVER}-generic $OPWD/pxe
|
cp -p /boot/vmlinuz-${KVER} $OPWD/pxe
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cp -p $OPWD/pxe/vmlinuz-${KVER}-generic $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
|
||||||
$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
|
||||||
cat >>$DEFAULT <<EOF
|
cat >>$DEFAULT <<EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user