|
|
@@ -1,6 +1,9 @@ |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
# build the iso |
|
|
|
# Build the iso. |
|
|
|
# Some parts of this (particularly the xorriso command lines) come from |
|
|
|
# the ubuntu-cdimage project: |
|
|
|
# http://bazaar.launchpad.net/~ubuntu-cdimage/debian-cd/ubuntu/ |
|
|
|
|
|
|
|
# make sure this was run as root |
|
|
|
if [ $UID -ne 0 ] ; then |
|
|
@@ -21,8 +24,8 @@ if ! [ "$1" == "justiso" ] ; then |
|
|
|
|
|
|
|
if ! [ -r ${INITRD} -a -r ${VMLINUZ} -a -r ${VMLINUZ_EFI} ] ; then |
|
|
|
set +x |
|
|
|
echo "Missing kernel stuff... Either upgrade or reinstall" |
|
|
|
echo "the kernel inside the image to get the right files." |
|
|
|
echo "== Missing kernel and/or initrd. Either upgrade or reinstall" |
|
|
|
echo "== the kernel inside the image to get the right files." |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|