2020-09-27 14:46:26 +00:00
|
|
|
defaults = {
|
2020-10-03 13:10:28 +00:00
|
|
|
'apt': {
|
2024-07-30 15:44:09 +00:00
|
|
|
'clean_old_kernels': False,
|
2020-10-03 13:10:28 +00:00
|
|
|
'packages': {
|
2021-02-16 07:41:37 +00:00
|
|
|
'dhcpcd5': {
|
|
|
|
'installed': False,
|
|
|
|
},
|
2020-10-03 13:10:28 +00:00
|
|
|
'dphys-swapfile': {
|
|
|
|
'installed': False,
|
|
|
|
},
|
2021-02-16 07:41:37 +00:00
|
|
|
'isc-dhcp-client': {
|
|
|
|
'installed': False,
|
|
|
|
},
|
|
|
|
'isc-dhcp-common': {
|
|
|
|
'installed': False,
|
|
|
|
},
|
2020-10-03 13:10:28 +00:00
|
|
|
},
|
2024-07-30 15:44:09 +00:00
|
|
|
'repos': {
|
|
|
|
'raspi': {
|
|
|
|
'install_gpg_key': False,
|
|
|
|
'items': {
|
|
|
|
'deb http://archive.raspberrypi.org/debian/ {os_release} main',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-10-03 13:10:28 +00:00
|
|
|
},
|
2020-09-27 14:46:26 +00:00
|
|
|
'raspberrypi': {
|
|
|
|
'cmdline': {
|
|
|
|
'console=tty1',
|
|
|
|
'root=/dev/mmcblk0p2',
|
|
|
|
'rootfstype=ext4',
|
|
|
|
'elevator=deadline',
|
|
|
|
'fsck.repair=yes',
|
|
|
|
'rootwait',
|
|
|
|
'quiet',
|
|
|
|
'plymouth.ignore-serial-consoles',
|
2020-11-25 20:26:21 +00:00
|
|
|
'net.ifnames=0',
|
2020-09-27 14:46:26 +00:00
|
|
|
},
|
2024-07-31 13:30:48 +00:00
|
|
|
'default-target': 'multi-user.target',
|
|
|
|
'enable_display': False,
|
2020-09-27 14:46:26 +00:00
|
|
|
},
|
2020-12-12 09:39:57 +00:00
|
|
|
'systemd': {
|
|
|
|
'journal': {
|
|
|
|
'storage': 'volatile',
|
|
|
|
'maxuse': '100M',
|
|
|
|
'keepfree': '100M',
|
|
|
|
},
|
|
|
|
},
|
2020-09-27 14:46:26 +00:00
|
|
|
}
|
2024-07-31 13:30:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
@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',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|