mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
rule_generator: fix for creating rules on read-only filesystem
This commit is contained in:
parent
58310f6698
commit
1f889fb84f
@ -92,7 +92,6 @@ find_all_rules() {
|
||||
local linkre="$2"
|
||||
local match="$3"
|
||||
|
||||
[ -e $RULES_FILE ] || return
|
||||
local search='.*[[:space:],]'"$key"'"\('"$linkre"'\)"[[:space:]]*\(,.*\|\\\|\)$'
|
||||
echo $(sed -n -e "${match}s/${search}/\1/p" $RO_RULES_FILE $RULES_FILE)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user