busybox: init: use buildsystem's SYSTEM_SIZE for update warning

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
Ian Leonard 2021-05-27 05:45:22 +00:00
parent 7e67a70da0
commit 9d03223e80
2 changed files with 2 additions and 1 deletions

View File

@ -208,6 +208,7 @@ makeinstall_init() {
cp ${PKG_DIR}/scripts/init ${INSTALL}
sed -e "s/@DISTRONAME@/${DISTRONAME}/g" \
-e "s/@KERNEL_NAME@/${KERNEL_NAME}/g" \
-e "s/@SYSTEM_SIZE@/${SYSTEM_SIZE}/g" \
-i ${INSTALL}/init
chmod 755 ${INSTALL}/init
}

View File

@ -916,7 +916,7 @@ check_update() {
echo ""
echo "You must re-install your system using the disk image of a"
echo "current release, or you must re-size your existing partitions"
echo "so that the System (FAT) partition is at least 512MB in size."
echo "so that the System (FAT) partition is at least @SYSTEM_SIZE@MB in size."
echo ""
do_cleanup
StartProgress countdown "Normal startup in 60s... " 60 "NOW"