bundles/raspberrypi: improvements

This commit is contained in:
Franzi 2020-09-27 17:18:05 +02:00
parent 81db0e6e44
commit 675f8beea9
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 3 additions and 3 deletions

View file

@ -9,6 +9,6 @@ max_framebuffers=2
arm_64bit=1
% endif
% for key, value in node.metadata['raspberrypi']['config.txt'].items():
${key}=${value}
% for item in sorted(node.metadata['raspberrypi']['config.txt']):
${item}
% endfor

View file

@ -10,7 +10,7 @@ file_perms = {
actions = {
'raspberrypi_assure_target': {
'command': f'systemctl set-default {default_target}',
'unless': f'[ $(systemctl get-default) = "{default_target}" ]',
'unless': f'[ "$(systemctl get-default)" = "{default_target}" ]',
},
}