/run is now created by postscript

This commit is contained in:
Calin Crisan 2018-11-18 19:55:27 +02:00
parent a7b265dc8a
commit 3774d80e26
3 changed files with 8 additions and 8 deletions

View File

@ -208,4 +208,4 @@ rm -f $TARGET/etc/init.d/S91smb
# other unwanted dirs
rm -rf $TARGET/data/*
rm -rf $TARGET/run

View File

@ -1 +0,0 @@
tmp

View File

@ -15,6 +15,12 @@ if [ -x $BOARD_DIR/postscript.sh ]; then
$BOARD_DIR/postscript.sh
fi
# cleanups
$COMMON_DIR/cleanups.sh
if [ -x $BOARD_DIR/cleanups.sh ]; then
$BOARD_DIR/cleanups.sh
fi
# transform /var contents as needed
rm -rf $TARGET/var/cache
rm -rf $TARGET/var/lib
@ -31,12 +37,7 @@ ln -s /data/log $TARGET/var/log
ln -s /tmp $TARGET/var/run
ln -s /tmp $TARGET/var/spool
ln -s /tmp $TARGET/var/tmp
# cleanups
$COMMON_DIR/cleanups.sh
if [ -x $BOARD_DIR/cleanups.sh ]; then
$BOARD_DIR/cleanups.sh
fi
ln -s /tmp $TARGET/run
# board-specific os.conf
if [ -r $BOARD_DIR/os.conf ]; then