nomodeset on nvidia gpu

This commit is contained in:
mwiegand 2022-07-07 20:17:38 +02:00
parent e3a1438247
commit 1387b5f1ae
5 changed files with 36 additions and 0 deletions

5
bundles/grub/files/grub Normal file
View file

@ -0,0 +1,5 @@
GRUB_DEFAULT=0
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="${' '.join(kernel_params)}"
GRUB_CMDLINE_LINUX=""

20
bundles/grub/items.py Normal file
View file

@ -0,0 +1,20 @@
files = {
'/etc/default/grub': {
'content_type': 'mako',
'context': {
'timeout': node.metadata.get('grub/timeout'),
'kernel_params': node.metadata.get('grub/kernel_params'),
},
'mode': '0644',
'triggers': {
'action:update-grub',
},
}
}
actions = {
'update-grub': {
'command': 'update-grub',
'triggered': True,
},
}

6
bundles/grub/metadata.py Normal file
View file

@ -0,0 +1,6 @@
defaults = {
'grub': {
'timeout': 1,
'kernel_params': set(),
},
}

View file

@ -8,6 +8,7 @@
'monitored',
],
'bundles': [
'grub',
'smartctl',
'wol-sleeper',
'zfs',

View file

@ -18,6 +18,7 @@
'gitea',
# 'gollum',
'grafana',
'grub',
'influxdb2',
'mirror',
'postgresql',
@ -69,6 +70,9 @@
'hostname': 'grafana.sublimity.de',
'influxdb_node': 'home.server',
},
'grub': {
'kernel_params': {'nomodeset'}, # nvidia GT1030 freeze fix
},
'influxdb': {
'hostname': 'influxdb.sublimity.de',
'admin_token': '!decrypt:encrypt$gAAAAABg3z5PcaLYmUpcElJ07s_G-iYwnS8d532TcR8xUYbZfttT-B736zgR6J726mzKAFNYlIfJ7amNLIzi2ETDH5TAXWsOiAKpX8WC_dPBAvG3uXGtcPYENjdeuvllSagZzPt0hCIZQZXg--Z_YvzaX9VzNrVAgGD-sXQnghN5_Vhf9gVxxwP---VB_6iNlsf61Nc4axoS',