It's one oddness over another. At least I'm learning with them.
I'm using OpenWrt 21.02-SNAPSHOT r15986-cc51d97200 and was gonna upgrade packages, but it was failing:
# opkg upgrade base-files
Upgrading base-files on root from 1406-r15986-cc51d97200 to 1406-r16015-beab1bf163...
Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/x86/64/packages/base-files_1406-r16015-beab1bf163_x86_64.ipk
Command failed: Not found
Command failed: Not found
umount: devpts busy - remounted read-only
umount: tmpfs busy - remounted read-only
umount: can't remount tmpfs read-only
umount: proc busy - remounted read-only
Collected errors:
* copy_file: unable to open `/etc/group-opkg.backup': Read-only file system.
* file_copy: Failed to copy file /etc/group to /etc/group-opkg.backup.
* backup_make_backup: Failed to copy /etc/group to /etc/group-opkg.backup
* pkg_write_filelist: Failed to open //usr/lib/opkg/info/base-files.list: Read-only file system.
IDK why, root is being mounted as readonly:
# mount
/dev/root on / type ext4 (ro,noatime)
proc on /proc type proc (ro,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (ro,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (ro,relatime,mode=600,ptmxmode=000)
boot partition also isn't being mounted, I'm not sure but it was before.
Well, I remounted it with mount -o remount,rw /
and was able to install block-mount.
> # mount
> /dev/root on / type ext4 (rw,noatime)
> proc on /proc type proc (ro,noatime)
> tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
> tmpfs on /dev type tmpfs (ro,relatime,size=512k,mode=755)
> devpts on /dev/pts type devpts (ro,relatime,mode=600,ptmxmode=000)
But just after verifying it's rw, I try to upgrade a package and it's back ro. It's as if the opkg upgrade itself is remounting root as ro.