From e626b7950b7653b1ffaf3034a6cd8cb05f9ea0bc Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 4 Apr 2018 19:41:35 +0200 Subject: [PATCH] busybox: defconfig: Enable stat cmd, required by initiramfs poky script ./meta/recipes-core/udev/udev-extraconf/mount.sh is called by systemd-udev rules every time a storage device is found, and it is responisble to automount them. The init script waits until the device is automounted to finish the boot process. The mount.sh script sues "stat", and right now our busybox doesn't have it enabled. As a result, stat is not found, the script fails, the device is not mounted, and the init script hangs forever. --- recipes-core/busybox/busybox_sysmocom.inc | 2 +- recipes-core/busybox/files/defconfig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-core/busybox/busybox_sysmocom.inc b/recipes-core/busybox/busybox_sysmocom.inc index 31b1b29..2293761 100644 --- a/recipes-core/busybox/busybox_sysmocom.inc +++ b/recipes-core/busybox/busybox_sysmocom.inc @@ -1,6 +1,6 @@ SYSMOCOM := "${@os.path.dirname(d.getVar('FILE', True))}" FILESEXTRAPATHS_prepend := "${SYSMOCOM}/busybox-${SYSMOCOM_ORIG_PV}:${SYSMOCOM}/files:" -PRINC = "31" +PRINC = "32" SRC_URI += "file://udhcpc-ntp.sh \ file://udhcpc-ntp.default \ diff --git a/recipes-core/busybox/files/defconfig b/recipes-core/busybox/files/defconfig index 2140600..e3fe773 100644 --- a/recipes-core/busybox/files/defconfig +++ b/recipes-core/busybox/files/defconfig @@ -284,8 +284,8 @@ CONFIG_SORT=y CONFIG_FEATURE_SORT_BIG=y # CONFIG_SPLIT is not set # CONFIG_FEATURE_SPLIT_FANCY is not set -# CONFIG_STAT is not set -# CONFIG_FEATURE_STAT_FORMAT is not set +CONFIG_STAT=y +CONFIG_FEATURE_STAT_FORMAT=y CONFIG_STTY=y # CONFIG_SUM is not set # CONFIG_TAC is not set