vyos-build
vyos-build copied to clipboard
T6333 non-free-firmware to trixie
Change Summary
Fixes this warning that would otherwise occur:
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes)
- [ ] Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
- [ ] Other (please describe):
Related Task(s)
https://vyos.dev/T6333
Component(s) name
Proposed changes
How to test
Checklist:
- [x] I have read the CONTRIBUTING document
- [x] I have linked this PR to one or more Phabricator Task(s)
- [x] My commit headlines contain a valid Task id
- [ ] My change requires a change to the documentation
- [ ] I have updated the documentation accordingly
Isnt this already handled by this:
https://github.com/vyos/vyos-build/blob/current/data/defaults.toml
Also the non-free-firmware shouldnt that exist for trixie-updates aswell?
current/data/defaults.toml just accounts for bookworm, not trixie.
I believe you're correct about trixie-updates, good catch! I'll try rebuilding with that just to make sure there are no surprises. I feel like there shouldn't be but I'm an absolute novice with apt, my main OS is arch, so I don't trust my judgment with apt yet.
In regards to current/data/defaults.toml actually, I wonder if the error will clear if debian_distribution
is set to trixie instead. I don't completely understand the build process of VyOS, but I suspect data/live-build-config/archives/trixie.list.chroot
is logically separate from what's going on with current/data/defaults.toml
(so this minor edit is needed regardless). If someone more experienced with VyOS reads this, feel free to jump in.
I feel that this PR should be denied because changing to "trixie" from "bookworm" is done at the wrong place.
It should be handled either by cmdline or by files at https://github.com/vyos/vyos-build/blob/current/data/ based on https://github.com/vyos/vyos-build/blob/current/data/defaults.toml as a start.
That is alter:
debian_distribution = "bookworm"
into:
debian_distribution = "trixie"
Also note that current 1.5-rolling is based on bookworm so suddently switching to trixie (which is the upcoming Debian version after bookworm) might break stuff.
If you still want to have a go I would just manually alter the content of defaults.toml in my build environment instead of adding new files to the VyOS repo.
@Apachez- I think you're a little mixed up with VyOS builds (as am I honestly)--not all packages come from bookworm. Different packages are pinned to different Debian versions. It is very noticable when building, you see something like:
Take a look at the files in this dir, for example: https://github.com/vyos/vyos-build/tree/current/data/live-build-config/archives
See what I'm saying?
@aidan-gibson you are correct that it applies only to those packages pinned in: https://github.com/vyos/vyos-build/blob/current/data/live-build-config/archives/trixie.pref.chroot hence needed independent of defaults.toml. Cf. https://vyos.dev/T5867; introduced in: https://github.com/vyos/vyos-build/commit/197feda60148ebeb907a457c1c6178926b403038
@jestabro Thanks for the info! Do you think line 2, deb http://deb.debian.org/debian/ trixie-updates main non-free
should also have non-free-firmware
appended? I'm seeing the same output on builds with or without; it doesn't seem to make a difference for now but maybe could cause issues down the road, one way or another.
@Apachez- The purpose of this PR is to eliminate a warning we get on builds, as stated initially. If you have alternative code that eliminates the warning in a different fashion, I'd love to learn from you, I still very much consider myself a VyOS novice. The PR I'd really like to implement is intel-microcode
and amd64-microcode
being included in VyOS (https://vyos.dev/T6322), but I'm unsure the best way to do that--I found this minor error/patch while trying to figure out the best way to do that.
Best regards to you both! I'm having a fantastic time with VyOS thus far.
If you just want to add 2 additional packages to your custom build the easiest way to do this is probably in your local build environment modify https://github.com/vyos/vyos-build/blob/current/data/architectures/amd64.toml to include the extra packages.
You can also add the custom packages through cmdline when compiling the ISO such as --custom-package:
https://docs.vyos.io/en/latest/contributing/build-vyos.html#customize
Thanks I'll try that build now! Yep, --custom-package
worked without a hitch, I'm just flabberghasted as to why it didn't work when adding them to where the majority of the packages go. The dearth of packages spooked me from submitting a PR trying out that dir, current/data/architectures/amd64.toml, but screw it, if it works I'll PR it and worst case the person rejecting the PR will know the proper way to do this.
@MergifyIo backport sagitta
backport sagitta
✅ Backports have been created
-
#623 T6333 non-free-firmware to trixie (backport #614) has been created for branch
sagitta