From d0f18824af5a86a5a422ea20e34282624fe779e3 Mon Sep 17 00:00:00 2001 From: Florian Boor Date: Fri, 17 Aug 2018 17:01:05 +0200 Subject: [PATCH] custom-firststart: run scripts with rw lower some minor fixes --- recipes-bsp/startup/custom-firststart/banner.sh | 2 +- recipes-bsp/startup/custom-firststart/firststart.sh | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/recipes-bsp/startup/custom-firststart/banner.sh b/recipes-bsp/startup/custom-firststart/banner.sh index 0ee9fb6..8d91ae6 100755 --- a/recipes-bsp/startup/custom-firststart/banner.sh +++ b/recipes-bsp/startup/custom-firststart/banner.sh @@ -1,2 +1,2 @@ #!/bin/sh -echo Running firststart tasks +echo ... diff --git a/recipes-bsp/startup/custom-firststart/firststart.sh b/recipes-bsp/startup/custom-firststart/firststart.sh index 06aecb5..90d740b 100644 --- a/recipes-bsp/startup/custom-firststart/firststart.sh +++ b/recipes-bsp/startup/custom-firststart/firststart.sh @@ -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 -- 2.39.2