Router fails to boot if /etc/config/
is a symbolic link pointing to /overlay-boot/upper/etc/config/
(ln -s /overlay-boot/upper/etc/config/ /etc/config
). Presumably because the device tries to access the config directory in the middle of mounting the USB stick and the old overlay /overlay-boot
# /etc/config/fstab on /overlay-boot, symlinked on /overlay
config 'global'
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
# Original overlay partition, mounted as /overlay during boot
config 'mount'
option target '/overlay-boot'
option device '/dev/mtdblock3'
option fstype 'jffs2'
option options 'rw,sync'
option enabled '1'
option enabled_fsck '0'
# External overlay partition, increases the available disk space on the router
config 'mount'
option target '/overlay'
option uuid '186f37df-2f8f-4283-919e-cb4a14b59097'
option enabled '1'
config 'swap'
option uuid 'd98414f9-a8e7-4df0-b353-fb4677d511a7'
option enabled '1'
What is causing this? I need to deduplicate the config directory so that the router can operate under the same configs with or without the the USB stick.