Page 1 of 1

/root folder wiped

Posted: Tue Jul 13, 2021 7:03 pm
by Airbag
Hello,
I have just seen that I cannot ssh using keys into my MiSTer. In fact my /root folder has been wiped (and that includes /root/.ssh/authorized_keys )
Fortunately it's easy to restore.
Is it related to the "Linux update" from 2 days ago ?
Do you know which other important folders will get wiped after every Linux update ?
Thanks.

Re: /root folder wiped

Posted: Tue Jul 13, 2021 7:29 pm
by Mellified
Everything in /root is reset to defaults after every Linux update.

Re: /root folder wiped

Posted: Wed Jul 14, 2021 2:08 am
by Stupid Dufus
Not sure if it's /root related or not, but I noticed the last time I updated linux on MiSTer none of my cifs connections were auto-mounting. Running the cifs_mount script again got them working.

Re: /root folder wiped

Posted: Wed Jul 14, 2021 4:53 am
by jca
This is normal, I had a quick look at the script and it does various things in different places of the Linux part of the file system. A new installation wipes not only /root but also other directories like /etc which I noticed on my MISTer as I have scripts in /etc/init.d, have to create /etc/connman and place a file in there.

Re: /root folder wiped

Posted: Wed Jul 14, 2021 7:08 am
by elvis
I back up all my customisations (SSH keys and a few other things) to a separate folder under the sdcard mount, and then have a small rsync script to put them all back whenever a system update clobbers the root volume.