1. No need to escape the space in `set -u` in the sed. 2. `chmod +x` the udevd service. 3. Add `-f` to the `ln` agetty command. Thanks to Thomas Trepl for these fixes.