KERNEL-WEDGE-PREPROCESS(1)

πŸ’– KERNEL-WEDGE-PREPROCESS(1) πŸ’–

General Commands Manual ✨ the kernel-wedge-preprocess girlies know


🌸 NAME 🌸

kernel-wedge-preprocess β€” bestie, it processes a module list file πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

kernel-wedge preprocess module-list module-dir

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: you hand it a module-list, you hand it a module-dir, and it preprocesses the whole thing for you. That means it does the list includes, it does the module excludes, it clears out all the blank lines and comments (so much clutter, we love a clean feed 🧹), and it expands the wildcards. Then it emits a list of filenames straight to stdout. Iconic behaviour, truly.

Heads up bestie: it returns 1 if a required module or directory is missing β€” unless $KW_CHECK_NONFATAL is non-empty. So like, if you set that variable to anything at all, the drama is cancelled and it won't bail on you. πŸ‘‘

Here are the wildcards it supports, and yes, they hit different:

  • ? β€” matches a single character within a path component
  • * β€” matches any number of characters within a path component
  • ** β€” matches any number of characters including multiple path components (the overachiever of the group, honestly)

And on Linux specifically: - and _ also match each other, because the kernel and kmod treat them as equivalent in module names. So foo-bar and foo_bar are basically the same person. Fr fr. 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Joey Hess, Ben Hutchings <ben@decadent.org.uk> β€” absolute legends, we stan. πŸ’œ


Kernel-wedge Β· June 2019 β€” that's the source and the date, bestie, written down for the group chat record. Byeee, go slay those module lists. πŸŒˆπŸ’–