]> git.karo-electronics.de Git - meta-kc-bsp.git/commitdiff
custom-fiststart: Add some output and extend variable replacement.
authorFlorian Boor <florian@kernelconcepts.de>
Wed, 17 Oct 2018 14:04:50 +0000 (16:04 +0200)
committerFlorian Boor <florian@kernelconcepts.de>
Wed, 17 Oct 2018 14:04:50 +0000 (16:04 +0200)
recipes-bsp/startup/custom-firststart/firststart.sh
recipes-bsp/startup/custom-firststart_1.0.bb

index 90d740b2e98fd03bf2c904311144d89fef7f95de..cad948e98d5458ff52962f4c6979a3e49362e550 100644 (file)
@@ -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
 
index 1cc19c750e9240aff3e510db56bf7e524daf1c23..8d699f04bbaf97ec30b0d356d24c238e8f78e16f 100644 (file)
@@ -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/*
 }