diff --git a/scripts/push_image.bash b/scripts/push_image.bash index 812964aa8..49ba9aeb5 100755 --- a/scripts/push_image.bash +++ b/scripts/push_image.bash @@ -29,6 +29,11 @@ if [ ! -d $WS ]; then exit 1 fi +if [ -d ${WS}/efi-part/EFI/refind ] && [ -d ${WS}/intel ]; then + echo "Detected intel/desktop system, using push_intel_desktop.bash instead..." + exec ${SKIFF_ROOT}/scripts/push_intel_desktop.bash ${@} +fi + echo "Ensuring mountpoints..." ssh $SSHSTR 'bash -s' <<'EOF' set -xeo pipefail @@ -121,5 +126,3 @@ sync && sync EOF echo "Done." - - diff --git a/scripts/push_intel_desktop.bash b/scripts/push_intel_desktop.bash index 7ee7bd4fd..6f73900a2 100755 --- a/scripts/push_intel_desktop.bash +++ b/scripts/push_intel_desktop.bash @@ -22,6 +22,7 @@ WORKSPACE_DIR=${SKIFF_ROOT}/workspaces/${SKIFF_WORKSPACE} IMAGES_DIR=${WORKSPACE_DIR}/images UIMG_PATH=${IMAGES_DIR}/bzImage SQUASHFS_PATH="${IMAGES_DIR}/rootfs.squashfs" +SKIFF_INIT_PATH="${IMAGES_DIR}/skiff-init" skiff_release_path="${IMAGES_DIR}/skiff-release" if [ ! -f "$skiff_release_path" ]; then @@ -29,6 +30,11 @@ if [ ! -f "$skiff_release_path" ]; then exit 1 fi +if [ ! -f "${SKIFF_INIT_PATH}/skiff-init-squashfs" ]; then + echo "skiff-init-squashfs not found, make sure Buildroot is done compiling." + exit 1 +fi + skiff_release=$(cat $skiff_release_path | grep "VERSION=" | cut -d= -f2) # add -1 to the end of the release to avoid refind problems skiff_release="${skiff_release}-1" @@ -39,3 +45,6 @@ ${RS} $SQUASHFS_PATH ${TARGET}/${squashfs_filename} echo "Copying kernel..." ${RS} $UIMG_PATH ${TARGET}/$(basename $UIMG_PATH)-skiffos-${skiff_release} + +echo "Copying skiff-init..." +${RS} ${SKIFF_INIT_PATH}/ ${TARGET}/skiff-init/