Skip to content

Feature patch to skip lost+found error

Hello

This is a feature patch to avoid error when lost+found directory exists a root level of WSUSOffline installation directory (like /home/wsusoffline)

In the file sh/common-tasks/70-update-configuration-files.bash, in function remove_obsolete_files, below the first lines of original comment (2 first lines) then the patch:

# Dummy files are inserted, because zip archives cannot include
# empty directories. They can be deleted on the first run.
# XXX Skip .., lost+found, .... (to be fixed)
find .. -maxdepth 1 -type d \! -name .. \! -name lost+found | while read d; do
  find "${d}" -type f -name dummy.txt -delete
done

This patch is skipping .. and lost+found (list can be completed with ! -name ......)

Since the root directory (..) cannot be empty, there is no need to remove dummy.txt file

Thanks in advance for your attention

Best Regards,

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information