mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-01-07 01:00:45 +01:00
Merge branch 'sysctl-fix' into 'main'
fix error handling when setting sysctl via yaml config See merge request systemrescue/systemrescue-sources!239
This commit is contained in:
commit
6d7848cf5f
|
|
@ -334,7 +334,7 @@ if 'sysconfig' in config and 'sysctl' in config['sysconfig'] and \
|
|||
|
||||
# pipe config into sysctl
|
||||
p = subprocess.run(["sysctl", "--load=-"], text=True, input=sysctllines)
|
||||
if p.returncode is not 0:
|
||||
if p.returncode != 0:
|
||||
print (f"Some or all sysctl options couldn't be set")
|
||||
errcnt+=1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue