Bug 1212432 - dkms fails with getopt: unrecognized option '--no-initramfs'
Summary: dkms fails with getopt: unrecognized option '--no-initramfs'
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Ferdinand Thiessen
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-16 07:12 UTC by Andreas Schwab
Modified: 2024-01-03 20:40 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schwab 2023-06-16 07:12:50 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
Comment 1 Clifford Dugal 2024-01-03 20:40:59 UTC
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.