OpenWRT Upgrade Failure with IPKG
Yesterday, I tried to upgrade one of by OpenWRT box with /ipkg upgrade/.I canceled the upgrade process when I saw the first package, base-files,
was upgraded. But it's too late, /etc/passwd was overwritten. Since I
was executing /ipkg/ with /sudo/, current user was missed in
//etc/passwd/. I used to think that I have to rescue the USB fs with an
original backup. Fortunately, I found the password of root was reseted
to blank and can be accessed with telnet. So, I logged in can copy some
files from another box. Now the box was back.
I'm not sure that whether any other customized files will be affected by
upgrading. But chances are that there's no protection for them during
upgrading. And unfortunately, there's no version check for package
dependency. So, upgrading will be a complex manual task.
Labels: OpenWRT
