This script goes into /etc/kernel/postinst.d
. You have to make it executable by root, e.g. chown root:root /etc/kernel/postinst.d/00-signing ; chmod u+rx /etc/kernel/postinst.d/00-signing
. It assists you with automatically signing freshly installed kernel images using the machine owner key in a way similar to what dkms does. This is mainly useful if you want to use mainline kernels on Ubuntu on Secure Boot enabled systems. This needs shim-signed to be set up. If you have questions this one might help you: While I made this for Ubuntu 20.04, it should work on current Debian based distributions. YMMV.
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.7.0 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=90201 | |
CONFIG_LD_VERSION=233000000 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_CC_CAN_LINK=y |
[13:13] Prospector: modmuss started OML (open mod loader) which was targeting minecraft 1.10, as a project mostly for fun. a bunch of people jumped on board with it
[13:14] Prospector: there was a big problem with this project, and that was that it didn't really do anything better than forge. like there was a list of events people wanted to add and it was basically just the forge event list lol
[13:14] Prospector: there weren't very many...new ideas with it
[13:14] Prospector: other than the fact that it used an open set of mappings, instead of MCP (called Open Mappings I believe)
[13:16] Prospector: OML pretty much died, and as 1.11 snapshots were rolling around, asie and modmuss started Fabric (after 2 name changes, Chorus and Prismarine) to play with these snapshots because some interesting changes were being made to the code, specifically to itemstacks. Fabric was determined to do things differently, using a modular approach, so you had fabric-loader, fabric-event-entity, fabric-resources, fabric-comm
import os | |
import re | |
def convert_replaceitem(fread): | |
changed = False | |
for i,command in enumerate(fread): | |
if command.startswith("replaceitem"): | |
# Regex credit to Dieuwt on the MinecraftCommands Discord | |
fread[i] = re.sub(r'replaceitem (entity @.[^[]*? .*? |entity @.\[.*?\] .*? |block (.*? ){4})', r'item \1replace ', command) | |
changed = True |