mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
feat: initial upload
Initial public release
This commit is contained in:
commit
85a5bd66e0
30 changed files with 943 additions and 0 deletions
29
scripts/docker/run_mkimage_final.sh
Executable file
29
scripts/docker/run_mkimage_final.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
scripts_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
||||
. ${scripts_path}/vars.sh
|
||||
|
||||
# Tempdir for root
|
||||
GENIMAGE_ROOT=$(mktemp -d)
|
||||
|
||||
# setup and move bits
|
||||
mkdir -p ${build_path}/final
|
||||
cp ${build_path}/boot.ext4 ${build_path}/final/
|
||||
cp ${build_path}/rootfs.ext4 ${build_path}/final/
|
||||
cp ${root_path}/genimage_final.cfg ${build_path}/genimage.cfg
|
||||
|
||||
# We get to gen an image per board, YAY!
|
||||
echo "Generating disk image"
|
||||
genimage \
|
||||
--rootpath "${GENIMAGE_ROOT}" \
|
||||
--tmppath "/tmp/genimage-initial-tmppath" \
|
||||
--inputpath "${build_path}/final" \
|
||||
--outputpath "${build_path}/final" \
|
||||
--config "${build_path}/genimage.cfg"
|
||||
mv ${build_path}/final/emmc.img ${build_path}/final/debian-UNVRPRO.img
|
||||
gzip ${build_path}/final/debian-UNVRPRO.img
|
||||
rm -rf /tmp/genimage-initial-tmppath # Cleanup
|
||||
|
||||
# Cleanup
|
||||
rm ${build_path}/final/boot.ext4 ${build_path}/final/rootfs.ext4 ${build_path}/genimage.cfg
|
Loading…
Add table
Add a link
Reference in a new issue