From fdcf909dcf9c6e0adbb0df06e08c782dc450a8b9 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Fri, 9 Sep 2016 18:02:53 +0100 Subject: [PATCH] init: make sure /storage is owned by root --- packages/sysutils/busybox/config/busybox-init.conf | 2 +- packages/sysutils/busybox/scripts/init | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/sysutils/busybox/config/busybox-init.conf b/packages/sysutils/busybox/config/busybox-init.conf index edaf87fc06..be4c136918 100644 --- a/packages/sysutils/busybox/config/busybox-init.conf +++ b/packages/sysutils/busybox/config/busybox-init.conf @@ -218,7 +218,7 @@ CONFIG_FEATURE_TR_EQUIV=y # CONFIG_CATV is not set # CONFIG_CHGRP is not set # CONFIG_CHMOD is not set -# CONFIG_CHOWN is not set +CONFIG_CHOWN=y # CONFIG_FEATURE_CHOWN_LONG_OPTIONS is not set CONFIG_CHROOT=y # CONFIG_CKSUM is not set diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 92dced662d..45a65c404a 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -202,7 +202,6 @@ # Mount handlers # All handlers take the following parameters: # $1:target, $2:mountpoint, $3:mount options, [$4:fs type] - mount_common() { # Common mount handler, handles block devices and filesystem images MOUNT_OPTIONS="-o $3" @@ -964,6 +963,9 @@ mount_part "/dev/$IMAGE_SYSTEM" "/sysroot" "ro,loop" fi + # Just in case... problems with ssh if not correctly owned + chown 0:0 /storage 2>/dev/null + mount --move /flash /sysroot/flash mount --move /storage /sysroot/storage