Could somebody please have a look at
http://wiki.tinycorelinux.net/dcore:basic_desktop_installation?&#persistence? I have my doubts about the handling of an empty '.filetool.lst'.
The situation arises in the following scenario: I have set up the installation from scratch with persistent home and opt on a dedicated partition. At first boot, '.filetool.lst' does contain "home" and "opt". Since persistence for those directories is not needed, I clean out that list.
Issueing 'backup' terminates without error. The graphical log-out dialogue, however, complains and points to '/tmp/backup_status' which contains "tar: /opt/.filetool.lst: No such file or directory". The file does exist but is empty, which must mess up a command line in a script.
I tried 'filetool.sh -b' which throws "sed: /opt/.filetool.lst: No such file or directory" but then says "Backing up files to .../tce/mydata.tgz".
The graphical 'filetool' throws "dc: stack underflow" and "ash: invalid number ''" (that is an empty string between two apostrophes) when performing a dry-run. Asked to perform a backup, it throws "sed: /opt/.filetool.lst: No such file or directory" and "tar: /opt/.filetool.lst: No such file or directory".
There still is need for the backup mechanism as there may be configuration files outside '/home' or '/opt' that should be made persistent, so the norestore boot-code cannot be used.
Is there a better strategy than the one presented in the wiki which seems a bit round-about?
Maybe the tools should check for an empty '.filetool.lst' and act appropriately? (I have not studied the code yet, sorry!)