FS#1746 - jffs2reset / firstboot has no effect #6640

@openwrt-bot

Description

hailfinger:

Device problem occurs on:
Arcadyan VGV7510KW22 (o2 Box 6431)

Software versions of OpenWrt/LEDE release:
OpenWrt 18.06.0, r7188-b0b5c64c22

Steps to reproduce:
Create a file in jffs2, then perform a factory reset as documented in the OpenWrt wiki:
root@OpenWrt: # touch /overlay/blah
root@OpenWrt:
# umount /overlay && jffs2reset && reboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
/dev/mtdblock6 is not mounted
/dev/mtdblock6 will be erased on next mount
root@OpenWrt:~# Connection to openwrt.lan closed.

$ ssh root@openwrt.lan

BusyBox v1.28.3 () built-in shell (ash)

| |.-----.-----.-----.| | | |.----.| |_
| - || _ | - | || | | || || |
|
_____|| |
| | || ___ ||| |____|
|
| W I R E L E S S F R E E D O M

OpenWrt 18.06.0, r7188-b0b5c64c22

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.

root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.5M 3.5M 0 100% /rom
tmpfs 27.9M 976.0K 26.9M 3% /tmp
tmpfs 27.9M 48.0K 27.8M 0% /tmp/root
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock6 10.3M 4.3M 5.9M 42% /overlay
overlayfs:/overlay 10.3M 4.3M 5.9M 42% /