diff options
-rwxr-xr-x | mltk | 5 | ||||
-rwxr-xr-x | server/build_core | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -100,10 +100,13 @@ read_params() { shift ;; *) - break + break ;; esac done + + # exit if no command + [ "x$BUILD" = "x" -a "x$CLEAN" = "x" ] && print_usage && exit 1 TOOLS="$@" } diff --git a/server/build_core b/server/build_core index c9aa7add..8435a4fe 100755 --- a/server/build_core +++ b/server/build_core @@ -28,7 +28,7 @@ STAGE32_DIR=${ROOT_DIR}/remote/stage3.2 initial_checks() { if [ ! -d ${STAGE32_DIR} ]; then - echo "No stage3.2 directory found. Please run setup_tools first." + echo "No stage3.2 directory found. Please run \"./mltk tools build\" first." exit 1 fi @@ -53,6 +53,7 @@ initial_checks() { cp -r /lib/modules/$(uname -r) ${STAGE32_DIR}/lib/modules/ fi + # TODO: check for aufs and squaskfs modules } generate_initramfs() { @@ -88,7 +89,6 @@ generate_initramfs() { generate_squashfs() { # finalize the initramfs target - [ ! -d ${STAGE32_DIR} ] && echo "No stage3.2 directory found. Please run setup_tools first." && exit 1 [ -e ${STAGE31_DIR}/mnt/openslx.sqfs ] && rm ${STAGE31_DIR}/mnt/openslx.sqfs mksquashfs ${STAGE32_DIR} ${STAGE31_DIR}/mnt/openslx.sqfs -comp xz -b 1M -no-recovery 2>/dev/null |