block-mount: unnecessary remounts after extroot switch
Username: Andreas
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1523
Environment: arm_cortex-a9_vfpv3, Linksys WRT1200AC, LEDE Reboot 17.01.4 r3560-79f57e42
Description:
A USB flash drive has been configured with an ext4 partition to be used as external overlay, following the steps at
https://openwrt.org/docs/guide-user/additional-software/extroot_configuration
precisely. After the extroot switch, block tries to remount partitions that have already been mounted, generating the following errors in the logs:
Sat Apr 28 12:25:00 2018 daemon.err block: /dev/ubiblock0_0 is already mounted on /rom Sat Apr 28 12:25:00 2018 daemon.err block: /dev/sdb1 is already mounted on /overlay