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

FS#4131 - 21.02.1 squashfs overlay retained rpi4 #9113

Open
openwrt-bot opened this issue Nov 9, 2021 · 6 comments
Open

FS#4131 - 21.02.1 squashfs overlay retained rpi4 #9113

openwrt-bot opened this issue Nov 9, 2021 · 6 comments
Labels

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Nov 9, 2021

wulfy23:

Upgrading from 21.02.0 to 21.02.1 leads to whacky opkg state where previous packages are listed

see:
https://forum.openwrt.org/t/rpi-4-sysupgrade-21-02-1-squashfs-overlay-retained/110586?u=wulfy23
for further information

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Nov 9, 2021

wulfy23:

note:

selection of keep settings or not makes no difference and user configs are retained even without keep settings...

21.02.0-rc4 > 21.02.0 (no problem)

21.02.0 > 21.02.1 (problem)
21.02.1 > 21.02.1 (problem)

21.02.1 > master@r18xxx+ (no problem)

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Nov 9, 2021

mojifax:

i've noticed this in 21.02.0 > 21.02.0 also

1- factory install
2- set password
3- reboot
4- sysupgrade not retaining settings
5- reboot password i still set

https://forum.openwrt.org/t/raspberry-pi-4-usb-boot/109646/7

@CakeConnoisseur
Copy link

@CakeConnoisseur CakeConnoisseur commented Feb 20, 2022

Duplicate of #5087

@TalalMash
Copy link

@TalalMash TalalMash commented Feb 26, 2022

For those looking for a temporary workaround with no graceful shutdown options (not a problem with f2fs-squashfs):
Using ext4 image, add to rc.local mount -o rw,remount,noatime,async,barrier=1,commit=30,errors=continue /
And in /lib/preinit/80_mount_root:

....
do_mount_root() {
       if [ -x '/usr/sbin/fsck.ext4' ]; then
           if [ -e '/dev/<replacewithrootpart>' ]; then
               echo "Checking <replacewithrootpart>"
               /usr/sbin/fsck.ext4 -y /dev/<replacewithrootpart> >> /tmp/fsck-results
           fi
	fi
	mount_root
....

With automated power cycles over ~100 iterations journaling corruptions were the most common but no data corruption, only data loss. Tested with litesql writing to storage every 2 seconds. Platform: RPi4 with sdcard.
E: to add filesystem would switch to read-only between 10-20 iterations with default settings. Note that speeds degrades significantly with 'sync' option.

@wulfy23
Copy link
Contributor

@wulfy23 wulfy23 commented Feb 28, 2022

possible overlap/relationships with this issue

#9352

@CakeConnoisseur
Copy link

@CakeConnoisseur CakeConnoisseur commented Apr 21, 2022

FYI: Just did a sysupgrade from 21.02.2 > 21.02.3 with the official squashfs image, this time "keep settings" was checked.
Could not reproduce the bug!

Was there a fix implemented?
AFAIK nothing mentioned here or in #9352.

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

No branches or pull requests

4 participants