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

@@ -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