diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-04 20:07:08 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-07-04 20:09:46 +0200 |
commit | 92131f9a555578a89d229f687b63bafbe050f3f7 (patch) | |
tree | 24f7328623978f9b795d64c997f16e39454c04ee /debian/vyos-1x.postinst | |
parent | 7b99545ee9ad2f55b9659104a76bcaff44149de4 (diff) | |
download | vyos-1x-92131f9a555578a89d229f687b63bafbe050f3f7.tar.gz vyos-1x-92131f9a555578a89d229f687b63bafbe050f3f7.zip |
wireless: T4287: use Debian postinst over preinst when using update-alternatives
This fixes an error during ISO assembly:
update-alternatives: error: no alternatives for regulatory.db
dpkg: error processing archive /tmp/apt-dpkg-install-PJplR3/00-vyos-1x_1.5dev0-1880-gecaa44498_amd64.deb (--unpack):
new vyos-1x package pre-installation script subprocess returned error exit status 2
(cherry picked from commit a414190447c32be0775a077cde13cef0cf2b8c54)
Diffstat (limited to 'debian/vyos-1x.postinst')
-rw-r--r-- | debian/vyos-1x.postinst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst index c1959c696..778cb10c1 100644 --- a/debian/vyos-1x.postinst +++ b/debian/vyos-1x.postinst @@ -199,3 +199,6 @@ python3 /usr/lib/python3/dist-packages/vyos/xml_ref/update_cache.py if [ ! -f /lib/systemd/system/ssh@.service ]; then ln /lib/systemd/system/ssh.service /lib/systemd/system/ssh@.service fi + +# T4287 - as we have a non-signed kernel use the upstream wireless reulatory database +update-alternatives --set regulatory.db /lib/firmware/regulatory.db-upstream |