mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-13 02:51:53 +00:00
20 lines
514 B
Bash
20 lines
514 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
scripts_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
||
|
. ${scripts_path}/vars.sh
|
||
|
|
||
|
# Tempdir for root
|
||
|
GENIMAGE_ROOT=$(mktemp -d)
|
||
|
|
||
|
# "fake" file so generation is happy
|
||
|
touch ${GENIMAGE_ROOT}/placeholder
|
||
|
|
||
|
# Generate our boot and rootfs disk images
|
||
|
genimage \
|
||
|
--rootpath "${GENIMAGE_ROOT}" \
|
||
|
--tmppath "/tmp/genimage-initial-tmppath" \
|
||
|
--inputpath "${build_path}" \
|
||
|
--outputpath "${build_path}" \
|
||
|
--config "${root_path}/genimage_initial.cfg"
|