init: make sure /storage is owned by root

This commit is contained in:
MilhouseVH 2016-09-09 18:02:53 +01:00
parent d929a2153b
commit fdcf909dcf
2 changed files with 4 additions and 2 deletions

View File

@ -218,7 +218,7 @@ CONFIG_FEATURE_TR_EQUIV=y
# CONFIG_CATV is not set # CONFIG_CATV is not set
# CONFIG_CHGRP is not set # CONFIG_CHGRP is not set
# CONFIG_CHMOD 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_FEATURE_CHOWN_LONG_OPTIONS is not set
CONFIG_CHROOT=y CONFIG_CHROOT=y
# CONFIG_CKSUM is not set # CONFIG_CKSUM is not set

View File

@ -202,7 +202,6 @@
# Mount handlers # Mount handlers
# All handlers take the following parameters: # All handlers take the following parameters:
# $1:target, $2:mountpoint, $3:mount options, [$4:fs type] # $1:target, $2:mountpoint, $3:mount options, [$4:fs type]
mount_common() { mount_common() {
# Common mount handler, handles block devices and filesystem images # Common mount handler, handles block devices and filesystem images
MOUNT_OPTIONS="-o $3" MOUNT_OPTIONS="-o $3"
@ -964,6 +963,9 @@
mount_part "/dev/$IMAGE_SYSTEM" "/sysroot" "ro,loop" mount_part "/dev/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
fi 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 /flash /sysroot/flash
mount --move /storage /sysroot/storage mount --move /storage /sysroot/storage