mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
mkimage.sh: automatically compute disk size
This commit is contained in:
parent
9d0ccada8b
commit
9df21a6b96
@ -23,7 +23,7 @@ ROOT=$IMG_DIR/.root
|
||||
ROOT_IMG=$IMG_DIR/root.img
|
||||
ROOT_SIZE="180" # MB
|
||||
|
||||
DISK_SIZE="220" # MB
|
||||
DISK_SIZE=$((BOOT_SIZE + ROOT_SIZE + 10))
|
||||
|
||||
COMMON_DIR=$(cd $IMG_DIR/../../../board/common; pwd)
|
||||
OS_NAME=$(source $COMMON_DIR/overlay/etc/version && echo $os_short_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user