Conversation
hitting a race condition causing authselect fails to restore because the home directory does not exist.
b63ac14 to
4d35c52
Compare
|
|
Why do you think it is about home directory? Profile information is read from /usr and backup is stored in /var/lib. There is no home directory involved. |
|
The home directory state I know is different. I haven't tested this, but regardless, I do think undoing changes in the opposite order is better. hrmm.. I was rushing, and I know what you have told me before, every change should be tested. I'll do that first. |
|
I'm puzzled. The error
|
| }} | ||
|
|
||
| cp --force --archive "{backup_path}/home/*" /home/ || : | ||
| rm --force --recursive /etc/sssd /var/lib/sss /var/log/sssd /home/* |
There was a problem hiding this comment.
Nice catch, it needs to be moved after that line.
|
I would like to see some reasoning, why do you think that order here matters? I don't see any reason, why it should matter, the result will still be the same as we only write to /home in this code only at one line. Other restore calls do not touch /home. |
|
I saw the backup happening last, and that it was being restored last as well. Looking at the error message, while I know it's most likely referring to the backup data in /var I can't see why that would be missing, but certainly, home didn't have the same contents or subfolders when it was backed up. It's not a good reason, but I wanted it to contain the same content when it restores. |
|
Looking at it again, I misread the code. What I thought it was doing was not correct. This has no impact. |
hitting a race condition causing authselect restore to fail because the home directory, containing the backup does not exist.