stupid question
because sysupgrade adds files
that are not present in the file list (/etc/sysupgrade.conf)?
and example:
/etc/opkg/keys/0b26f36ae0f4106d
/etc/opkg/keys/1035ac73cc4e59e3
/etc/shadow
and many others
stupid question
because sysupgrade adds files
that are not present in the file list (/etc/sysupgrade.conf)?
and example:
/etc/opkg/keys/0b26f36ae0f4106d
/etc/opkg/keys/1035ac73cc4e59e3
/etc/shadow
and many others
... and what is the question exactly?
I would like it not to generate an archive containing files that I have not expressly inserted
This is not possible. Sysupgrade will consult /lib/upgrade/keep.d/
(which you could delete) and opkg list-changed-conffiles
(which you can't simply override) to assemble the list of files to backup. Through sysupgrade.conf
you can only amend this list.
thank you support
if it may interest someone else just using sysupgrade
I advise you to be careful you have files that are present in the archive especially if like me you do not remember passwords 64 characters long
I was able to solve using the "vim" editor to remove the password in the
/etc/shadow
to restore the configuration without password
it seems you mixed up something:
but unless you enter a 64 char long password sysupgrade/backup will not make one for you. also 64 (?) char string you see in /etc/shadow is the encrypted version of your password, not the plain text version.
using a system password-less is not a wise habit, it is quite a big security gap, thus if you once did set a password for root (which is the very first thing suggesting by the system after fresh install) then it is obviously saved in the backup file. so not sure what you try to imply, what is really your concern here to be honest.
this was the first time I restored an archive, usually I sign the passwords I set in text files, unfortunately in this case I created the archive a year ago and I did not remember exactly where I had entered the password.
and not having enough time to go back to the one set, I tried to find an alternative solution.
my main concern is that it may happen to someone else or even myself in the future as passwords I prefer to have them generated by a program rather than using shorter passwords.
My password is successfully saved and restored upon sysupgrade. It doesn't matter if it's simple or complex. I do recall a thread some time ago - that some versions of OpenWrt had issues with a long password.
It seems like the OP is trying to save a plain-text copy of the password on the device in a separate file (or perhaps a hash of it or something based on a personal cert - as the OP noted they sign the password???); but is not making that point clear.
Three options: