From 8944472dc440891bf7388889aeb06fca9a38b3f6 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 27 Dec 2021 23:23:30 +0800 Subject: [PATCH] Add expand_rootfs --- bsp/rootfs/build.sh | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/bsp/rootfs/build.sh b/bsp/rootfs/build.sh index 95a1814..625580d 100755 --- a/bsp/rootfs/build.sh +++ b/bsp/rootfs/build.sh @@ -171,6 +171,14 @@ fi } +function do_common() +{ + if [ -s ${PATCH_PATH}/expand_rootfs ] ; then + cp ${PATCH_PATH}/expand_rootfs ${ROOTFS_DIR}/usr/sbin/ + chmod a+x ${ROOTFS_DIR}/usr/sbin/expand_rootfs + fi +} + function do_buildroot() { if [ $ROOTFS != "buildroot" ] ; then @@ -204,6 +212,9 @@ # modify for buildroot rootfs do_buildroot + # modify for all rootfs + do_common + # update hostnmae and issue echo "Welcome to LingYun IoT Gateway Kit Board GNU/Linux $ROOTFS system, default password '$DEF_PASSWD'." > ${ROOTFS_DIR}/etc/issue echo $DEF_HOSTNAME > ${ROOTFS_DIR}/etc/hostname -- Gitblit v1.9.1