]> git.kernelconcepts.de Git - meta-kc-bsp.git/commitdiff
custom-firststart: run scripts with rw lower
authorFlorian Boor <florian@kernelconcepts.de>
Fri, 17 Aug 2018 15:01:05 +0000 (17:01 +0200)
committerFlorian Boor <florian@kernelconcepts.de>
Fri, 17 Aug 2018 15:01:05 +0000 (17:01 +0200)
some minor fixes

recipes-bsp/startup/custom-firststart/banner.sh
recipes-bsp/startup/custom-firststart/firststart.sh

index 0ee9fb68aa1b9688581ddaa418a22eecee91d591..8d91ae658a2bca38e505423c2433d7ee535f373c 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-echo Running firststart tasks
+echo ...
index 06aecb5c78b0c47fc775d64ca7c92e93f35d0f87..90d740b2e98fd03bf2c904311144d89fef7f95de 100644 (file)
@@ -15,19 +15,20 @@ if ! [ -d $DIR ]; then
        exit 0
 fi
 
-echo "Running first boot tasks...."
-
-run-parts $DIR
-
 # check if we have a ro overlay or if we can write changes directly
-if [ -e "/media/rfs/ro" ]; then
+if [ -e "$DIR_OVERLAY_LOWER" ]; then
 # using meta-readonly-rootfs-overlay
        mount $DIR_OVERLAY_LOWER -o remount,rw
+
+       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
 else 
+       run-parts $DIR
+
        rm -rf $DIR
        remove_startup_link
 fi