| ... | ... |
@@ -44,16 +44,17 @@ mkdir -p $DEST_DIR/ubuntu |
| 44 | 44 |
if [ ! -d $OPWD/pxe ]; then |
| 45 | 45 |
mkdir -p $OPWD/pxe |
| 46 | 46 |
fi |
| 47 |
-if [ ! -r $OPWD/pxe/vmlinuz-${KVER}-generic ]; then
|
|
| 48 |
- if [ ! -r /boot/vmlinuz-${KVER}-generic ]; then
|
|
| 47 |
+if [ ! -r $OPWD/pxe/vmlinuz-${KVER} ]; then
|
|
| 48 |
+ sudo chmod 644 /boot/vmlinuz-${KVER}
|
|
| 49 |
+ if [ ! -r /boot/vmlinuz-${KVER} ]; then
|
|
| 49 | 50 |
echo "No kernel found" |
| 50 | 51 |
else |
| 51 |
- cp -p /boot/vmlinuz-${KVER}-generic $OPWD/pxe
|
|
| 52 |
+ cp -p /boot/vmlinuz-${KVER} $OPWD/pxe
|
|
| 52 | 53 |
fi |
| 53 | 54 |
fi |
| 54 |
-cp -p $OPWD/pxe/vmlinuz-${KVER}-generic $DEST_DIR/ubuntu
|
|
| 55 |
+cp -p $OPWD/pxe/vmlinuz-${KVER} $DEST_DIR/ubuntu
|
|
| 55 | 56 |
if [ ! -r $OPWD/pxe/stack-initrd.gz ]; then |
| 56 |
- $PROGDIR/build_pxe_ramdisk.sh $OPWD/pxe/stack-initrd.gz |
|
| 57 |
+ sudo $PROGDIR/build_pxe_ramdisk.sh $OPWD/pxe/stack-initrd.gz |
|
| 57 | 58 |
fi |
| 58 | 59 |
cp -p $OPWD/pxe/stack-initrd.gz $DEST_DIR/ubuntu |
| 59 | 60 |
cat >>$DEFAULT <<EOF |