Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using OWUT with Resize ROOTFS option results in device configuration loss (default settings). #27

Open
JustAnotherEndUser opened this issue Jan 10, 2025 · 3 comments

Comments

@JustAnotherEndUser
Copy link

I used OWUT to upgrade a configured x86/64 device from OpenWRT version 24.10.0-rc4 (with default partition size) to 24.10.0-rc5 with the rootfs expansion option.
Specifically, I ran: 'owut upgrade -S 1024'
Although the version upgrade succeeded, upon reboot I noticed that the previous configuration was cleared. ( All settings were back to default, such as LAN IP, blank root password, http was not enabled for LuCI, etc. )
I had made a backup on rc4 immediately before upgrading, so was able to easily restore settings.
The configuration loss was likely a result of the partition resize process.
I am reporting this in hopes that there is a possible future workaround, or at least as an informational addition to the OWUT documentation / FAQ. Thank you.

@obsy
Copy link

obsy commented Jan 10, 2025

Did you read https://openwrt.org/docs/guide-user/installation/sysupgrade.owut#expanding_root_file_system ?

@efahl
Copy link
Owner

efahl commented Jan 10, 2025

His issue is resolved, but I asked @JustAnotherEndUser to log this to track improvements that at least reduce the need to dig out the wiki article, and best case fix the issues with sysupgrade that cause loss of config when upgrading.

@efahl
Copy link
Owner

efahl commented Jan 11, 2025

@dangowrt Quick question: would I be correct in saying that if I detect /sys/class/block/mtdblock* on an OpenWrt device, then its root file system cannot be expanded?

I'm on sort of a side quest to this issue; I would like to suppress --rootfs-size from appearing in owut's options on devices where it makes no sense, and poking around, that looks like a candidate. Are there devices with no mtdblock but instead have only ubiblock devices serving my purpose (i.e., should I look for both)? Are there others? (My hardware selection is quite limited, so I'm sort of guessing on all of this.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants