blob: eaaf47255a5c367258d56e74f11b6c6dcb9f6e96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
fsfreeze-hook script should also ignored dpkg generated files
Hello,
In the fsfreeze-hook script, the following code check if some of the files should be ignored:
# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
case "$1" in
*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave | *.sample)
return 0 ;;
esac
return 1
}
The functions should probably also skip dpkg generated files.
I've found a list of the different extensions in the systemd source tree: https://github.com/systemd/systemd/blob/master/src/basic/util.c#L1871
|