Skip to content

Instantly share code, notes, and snippets.

@yuri1969
Last active June 2, 2023 20:37
Show Gist options
  • Save yuri1969/56cedfc7af86ccb07bcd394d828a400d to your computer and use it in GitHub Desktop.
Save yuri1969/56cedfc7af86ccb07bcd394d828a400d to your computer and use it in GitHub Desktop.
Run kernel compile
#!/bin/bash
cd /usr/src/linux || { echo 'Failed to switch to /usr/src/linux' >&2; exit 1; }
chrt -i 0 ionice -c 3 make -j "$(nproc)" || \
{ echo 'Failed to compile the kernel' >&2; exit 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment