[OE-core] [PATCH V2 1/1] sysvinit: fix missing of boot log

ChenQi Qi.Chen at windriver.com
Tue Oct 8 01:51:24 UTC 2013


ping

On 09/26/2013 06:02 PM, Qi.Chen at windriver.com wrote:
> From: Chen Qi <Qi.Chen at windriver.com>
>
> Previously, our system had no boot log even if the bootlogd daemon was
> started correctly. The root cause is that the log file doesn't exist
> when starting the bootlogd.
>
> Add '-c' option to bootlogd so that it will create the boot log if
> it doesn't exist.
>
> Besides, we need to make sure that tmpfs has been mounted. Otherwise,
> the boot log will still be missing.
>
> [YOCTO #5273]
>
> Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
> ---
>   meta/recipes-core/sysvinit/sysvinit/bootlogd.init |    5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init
> index 7b87827..3a10a3c 100755
> --- a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init
> +++ b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init
> @@ -42,14 +42,15 @@ esac
>   
>   case "$ACTION" in
>   	start)
> +		mount -a -t tmpfs 2>/dev/null
>   		echo -n "Starting $DESC: "
>   		if [ -d /proc/1/. ]
>   		then
>   			umask 027
>   			start-stop-daemon --start --quiet \
> -				--exec $DAEMON -- -r
> +				--exec $DAEMON -- -r -c
>   		else
> -			$DAEMON -r
> +			$DAEMON -r -c
>   		fi
>   		echo "$NAME."
>   		;;




More information about the Openembedded-core mailing list