onlrfs: fix bug of '__rfs__' substitution

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
This commit is contained in:
Wataru Ishida
2019-08-30 11:13:10 -07:00
parent a75ec04b7b
commit 2d7e127106

View File

@@ -503,7 +503,7 @@ rm -f /usr/sbin/policy-rc.d
for command in Configure.get('commands', []):
if '__rfs__' in command:
command = command % dict(__rfs__=dir_)
command = command.replace('__rfs__', dir_)
logger.info("Configuration command '%s'..." % command)
onlu.execute(command,
ex=OnlRfsError("Command '%s' failed." % command))