Bugzilla – Bug 1212432
dkms fails with getopt: unrecognized option '--no-initramfs'
Last modified: 2024-01-03 20:40:59 UTC
Error messages from dkms: Adding any weak-modules getopt: unrecognized option '--no-initramfs' Usage: ${0##*/} [options] {--add-modules|--remove-modules} ${0##*/} [options] {--add-kernel|--remove-kernel} {kernel-release} --add-modules Add a list of modules read from standard input. Create symlinks in compatible kernel's weak-updates/ directory. The list of modules is read from standard input. --remove-modules Remove compatibility symlinks from weak-updates/ directories for a list of modules. The list of modules is read from standard input. --add-kernel Add compatibility symlinks for all compatible modules to the specified or running kernel. --remove-kernel Remove all compatibility symlinks for the specified or current kernel. --verbose Print the commands executed. -dry-run Do not create/remove any files. /usr/sbin/dkms: line 1196: echo: write error: Broken pipe /usr/sbin/dkms: line 1196: echo: write error: Broken pipe /usr/sbin/dkms: line 1196: echo: write error: Broken pipe /usr/sbin/dkms: line 1196: echo: write error: Broken pipe /usr/sbin/dkms: line 1196: echo: write error: Broken pipe
While more of a hack, I've at least been able to work around the issue by changing line 2374 of /usr/sbin/dkms to read: weak_modules_no_initrd="" I'm not sure if that results in any other issues, but I can at least build/install the system76-io module after altering dkms in that way.