From 069923fef7c51612077d75eca06f642ad3112052 Mon Sep 17 00:00:00 2001 From: Florian Boor Date: Wed, 17 Oct 2018 16:04:50 +0200 Subject: [PATCH] custom-fiststart: Add some output and extend variable replacement. --- recipes-bsp/startup/custom-firststart/firststart.sh | 6 +++++- recipes-bsp/startup/custom-firststart_1.0.bb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes-bsp/startup/custom-firststart/firststart.sh b/recipes-bsp/startup/custom-firststart/firststart.sh index 90d740b..cad948e 100644 --- a/recipes-bsp/startup/custom-firststart/firststart.sh +++ b/recipes-bsp/startup/custom-firststart/firststart.sh @@ -18,14 +18,18 @@ fi # check if we have a ro overlay or if we can write changes directly if [ -e "$DIR_OVERLAY_LOWER" ]; then # using meta-readonly-rootfs-overlay + echo Mounting rootfs lower rw mount $DIR_OVERLAY_LOWER -o remount,rw + echo Running write tasks... run-parts $DIR rm -r $DIR_OVERLAY_LOWER/$DIR rm $DIR_OVERLAY_LOWER/#SYSCONFDIR#/rc*.d/S*firststart rm $DIR_OVERLAY_LOWER/#SYSCONFDIR#/init.d/firststart - mount $DIR_OVERLAY_LOWER -o remount,ro + sync + echo Mounting rootfs lower ro + mount $DIR_OVERLAY_LOWER -o remount,ro > /dev/null 2>&1 else run-parts $DIR diff --git a/recipes-bsp/startup/custom-firststart_1.0.bb b/recipes-bsp/startup/custom-firststart_1.0.bb index 1cc19c7..8d699f0 100644 --- a/recipes-bsp/startup/custom-firststart_1.0.bb +++ b/recipes-bsp/startup/custom-firststart_1.0.bb @@ -36,5 +36,5 @@ do_install() { -e 's:#SBINDIR#:${sbindir}:g' \ -e 's:#BASE_BINDIR#:${base_bindir}:g' \ -e 's:#LOCALSTATEDIR#:${localstatedir}:g' \ - ${D}${sbindir}/firststart.sh + ${D}${sbindir}/*.sh ${D}${sysconfdir}/firststart.d/* } -- 2.39.2