ossobv / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
0 stars 0 forks source link

env: Fix so built shipped/provided packages are Pinned #30

Open wdoekes opened 6 days ago

wdoekes commented 6 days ago

Description

Once an image has been created it is still writable: apt/dpkg works. This is nice. We can install additional tooling.

However, there is a problem with the versioning of certain provided packages:

A solution:;

Maybe check: https://askubuntu.com/questions/170348/how-to-create-a-local-apt-repository

Which build are we running (if any)

Upstream issues/PRs

wdoekes commented 6 days ago

Looks like we need: /etc/apt/preferences.d/sonic.pref

With this content:

Package: bash
Pin: version 5.1-2
Pin-Priority: 800

...

With this, we won't even need #deb [trusted=yes] file:/usr/local/mydebs ./, I think.

Needs confirmation when two equal-named packages are available..