Reflash will fix it but you can also install bootmenu (and optionally clone your system to card) before you start experimenting with your system. Then once this happens you can either boot into usb network recovery mode, ssh in over usb, mount rootfs and fix it or you can boot device with copy of clean system and mount and fix broken rootfs too. All this without reflashing and losing your data.