bundlewrap/bundles/raspberrypi/metadata.py

66 lines
1.5 KiB
Python
Raw Permalink Normal View History

2020-09-27 14:46:26 +00:00
defaults = {
'apt': {
'clean_old_kernels': False,
'packages': {
'dhcpcd5': {
'installed': False,
},
'dphys-swapfile': {
'installed': False,
},
'isc-dhcp-client': {
'installed': False,
},
'isc-dhcp-common': {
'installed': False,
},
},
'repos': {
'raspi': {
'install_gpg_key': False,
'items': {
'deb http://archive.raspberrypi.org/debian/ {os_release} main',
},
},
},
},
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',
'net.ifnames=0',
2020-09-27 14:46:26 +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
}
@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',
},
},
}