-
-
Notifications
You must be signed in to change notification settings - Fork 38
dracut: asahi-firmware: Configure the /lib/firmware/vendor path #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,9 +4,18 @@ | |
| type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh | ||
|
|
||
| info ":: Asahi: Installing vendor firmware to root filesystem..." | ||
|
|
||
| if [ ! -d /sysroot/lib/firmware/vendor ]; then | ||
| warn ":: Asahi: Vendor firmware directory missing on the root filesystem!" | ||
| return 1 | ||
| fi | ||
|
|
||
| if [ -e /sys/module/firmware_class/parameters/path ]; then | ||
| echo -n /lib/firmware/vendor > /sys/module/firmware_class/parameters/path | ||
| else | ||
| warn ":: Asahi: Vendor firmware directory unable to be configured!" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does dracut have error log messages? This should be one especially with with the |
||
| return 1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the |
||
| fi | ||
|
|
||
| mount -t tmpfs -o mode=0755 vendorfw /sysroot/lib/firmware/vendor | ||
| cp -a /vendorfw/* /vendorfw/.vendorfw.manifest /sysroot/lib/firmware/vendor | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a warning for the unlikely case that the path isn't empty/unset is warranted here.