mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-27 05:29:32 +00:00
image_builder: change code order in manual.sh
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
DEBIAN_FRONTEND='noninteractive'
|
||||
LANG='C.UTF-8'
|
||||
LC_ALL='C.UTF-8'
|
||||
@@ -9,8 +11,6 @@ echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2
|
||||
|
||||
apt install unzip wget
|
||||
|
||||
set -e
|
||||
|
||||
BUILD_DIR=$(pwd)
|
||||
IMAGE_NAME="clever_qemu.img"
|
||||
|
||||
@@ -20,6 +20,9 @@ RPI_DONWLOAD_URL="https://downloads.raspberrypi.org/raspbian_lite/images/raspbia
|
||||
./image_config.sh resize_fs ${BUILD_DIR}/${IMAGE_NAME} "7G"
|
||||
./image_config.sh copy_to_chroot ${BUILD_DIR}/${IMAGE_NAME} "qemu-arm-resin" "/usr/bin/qemu-arm-static"
|
||||
|
||||
./image_config.sh copy_to_chroot ${BUILD_DIR}/${IMAGE_NAME} "scripts/init_rpi.sh" "/root/"
|
||||
./image_config.sh copy_to_chroot ${BUILD_DIR}/${IMAGE_NAME} "scripts/hardware_setup.sh" "/root/"
|
||||
|
||||
./image_config.sh execute ${BUILD_DIR}/${IMAGE_NAME} "scripts/init_image.sh" "qemu_build_20082018" "raspbian_nov_2017"
|
||||
./image_config.sh execute ${BUILD_DIR}/${IMAGE_NAME} "scripts/software_install.sh"
|
||||
./image_config.sh execute ${BUILD_DIR}/${IMAGE_NAME} "scripts/network_setup.sh"
|
||||
@@ -27,11 +30,8 @@ RPI_DONWLOAD_URL="https://downloads.raspberrypi.org/raspbian_lite/images/raspbia
|
||||
#./image_config.sh copy_to_chroot ${BUILD_DIR}/${IMAGE_NAME} "kinetic-ros-coex.rosinstall" "/home/pi/ros_catkin_ws/"
|
||||
#./image_config.sh execute ${BUILD_DIR}/${IMAGE_NAME} scripts/ros_install.sh https://github.com/CopterExpress/clever.git master True
|
||||
|
||||
./image_config.sh copy_to_chroot ${BUILD_DIR}/${IMAGE_NAME} "scripts/init_rpi.sh" "/root/"
|
||||
./image_config.sh copy_to_chroot ${BUILD_DIR}/${IMAGE_NAME} "scripts/hardware_setup.sh" "/root/"
|
||||
#./image_config.sh copy_to_chroot ${BUILD_DIR}/${IMAGE_NAME} "scripts" "/"
|
||||
#./image_config.sh execute ${BUILD_DIR}/${IMAGE_NAME}
|
||||
|
||||
./autosizer.sh ${BUILD_DIR}/${IMAGE_NAME}
|
||||
./image_config.sh execute ${BUILD_DIR}/${IMAGE_NAME} "scripts/change_boot_part.sh"
|
||||
|
||||
#./image_config.sh copy_to_chroot ${BUILD_DIR}/${IMAGE_NAME} "scripts" "/"
|
||||
#./image_config.sh execute ${BUILD_DIR}/${IMAGE_NAME}
|
||||
Reference in New Issue
Block a user