bundles/raspberrypi: fix config.txt for lcd display

This commit is contained in:
Franzi 2024-07-31 15:30:48 +02:00
parent de6073bdcf
commit fa47322bb0
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 33 additions and 9 deletions

View file

@ -25,7 +25,6 @@ defaults = {
},
},
'raspberrypi': {
'default-target': 'multi-user.target',
'cmdline': {
'console=tty1',
'root=/dev/mmcblk0p2',
@ -37,6 +36,8 @@ defaults = {
'plymouth.ignore-serial-consoles',
'net.ifnames=0',
},
'default-target': 'multi-user.target',
'enable_display': False,
},
'systemd': {
'journal': {
@ -46,3 +47,19 @@ defaults = {
},
},
}
@metadata_reactor.provides(
'raspberrypi/cmdline',
)
def display(metadata):
if not metadata.get('raspberrypi/enable_display'):
return {}
return {
'raspberrypi': {
'cmdline': {
'video=DSI-1:800x480@60,rotate=180',
},
},
}