-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The installer asks when a backup exists whether it should be reused or not. When no is selected, the mig directory is tried to be emptied. However, since the bluetooth subdirectory can contain folders, it fails, since rm is called without -r. This leads to the rmdir command to fail and on every tik run it will detect the uncleaned directory and thinks a backup exists.
Is there a reason /var/lib/tik/mig isn't just removed with rm -r in one cleanup command and created when a backup is actually requested (instead of at the top of the mig module)?
To Reproduce
Steps to reproduce the behavior:
- Make backup of existing install
- restart tik, it will ask if you want to reuse the backup, select no
- restart tk, it will ask you again
Expected behavior
Tik doesn't ask me again if I want to reuse the backup that I just deleted
tik log
I guess this is the relevant part:
rm: cannot remove '/var/lib/tik/mig/bluetooth/*': No such file or directory
[/usr/lib/tik/modules/pre/20-mig][20251218-19:47:09][LOG] [pkexec][1] /usr/bin/rm /var/lib/tik/mig/bluetooth/*
rmdir: failed to remove '/var/lib/tik/mig/bluetooth': Directory not empty
[/usr/lib/tik/modules/pre/20-mig][20251218-19:47:09][LOG] [pkexec][1] /usr/bin/rmdir /var/lib/tik/mig/bluetooth
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working