Skip to content

apply driver update only to the product it is intended for#3327

Merged
lslezak merged 3 commits intoagama-project:masterfrom
wfeldt:dud_apply_check_dist
Mar 31, 2026
Merged

apply driver update only to the product it is intended for#3327
lslezak merged 3 commits intoagama-project:masterfrom
wfeldt:dud_apply_check_dist

Conversation

@wfeldt
Copy link
Copy Markdown
Contributor

@wfeldt wfeldt commented Mar 24, 2026

Problem

Currently, Agama applies driver updates regardless whether it is intended for a specific product or not.
This is different than what YaST did.

This makes it sometimes impossible to hand out fixes in the form of a DUD that can be used for more than one product.

This patch restores the previous behavior. Since there is no pre-configured product tag available (it used to be stored in linuxrc.config) , this patch uses ID and VERSION_ID from /etc/os-release to construct a dist tag.

DUDs are usually architecture and product specific since they are kept in a /linux/suse/ARCH-DIST directory. Agama just ignores the DIST part currently.

Here are some examples to make things clear:

/linux/suse/ARCH-DIST

# SLE-15 (old)
/linux/suse/x86_64-sles15

# SLES 16.1
/linux/suse/x86_64-sles16.1

# Leap 16.1
/linux/suse/x86_64-opensuse-leap16.1

# Tumbleweed
/linux/suse/x86_64-opensuse-tumbleweed

Solution

Use ID and VERSION_ID from /etc/os-release to match the product stored in the DUD.

Testing

  • Tested manually

@wfeldt wfeldt force-pushed the dud_apply_check_dist branch from 0b12b95 to ed92bc5 Compare March 24, 2026 14:18
Copy link
Copy Markdown
Contributor

@lslezak lslezak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just please add a live/src/agama-installer.changes record

@wfeldt
Copy link
Copy Markdown
Contributor Author

wfeldt commented Mar 30, 2026

agama-installer.changes updated

Copy link
Copy Markdown
Contributor

@lslezak lslezak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@lslezak lslezak merged commit 900f0e2 into agama-project:master Mar 31, 2026
2 checks passed
@imobachgs imobachgs mentioned this pull request Apr 14, 2026
imobachgs added a commit that referenced this pull request Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants