Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 917eca5e authored by Robert Nelson's avatar Robert Nelson
Browse files

05_generate_boot.sh: should run as root in ci


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 09568577
Branches
Tags
No related merge requests found
#!/bin/bash
if ! id | grep -q root; then
echo "./05_generate_boot.sh must be run as root:"
echo "sudo ./05_generate_boot.sh"
exit
fi
mkdir -p ./ignore/.boot
cp -v ./deploy/fw_dynamic.bin ./ignore/.boot
cp -v ./bins/light_aon_fpga.bin ./ignore/.boot
......@@ -8,4 +14,4 @@ cp -v ./deploy/Image ./ignore/.boot
cp -v ./deploy/light-beagle.dtb ./ignore/.boot
dd if=/dev/zero of=./deploy/boot.ext4 count=10000 bs=4096
sudo mkfs.ext4 -F ./deploy/boot.ext4 -d ./ignore/.boot
mkfs.ext4 -F ./deploy/boot.ext4 -d ./ignore/.boot
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment