# 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
-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/*
}