From 03b5f1610e9e6421b10afaf51057b2f871c0a559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 22 Nov 2018 13:00:10 +0100 Subject: [PATCH] Add raspbian priority to apt preferences --- stage2/00-packages/00-run-chroot.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/stage2/00-packages/00-run-chroot.sh b/stage2/00-packages/00-run-chroot.sh index ccea43e..8998823 100755 --- a/stage2/00-packages/00-run-chroot.sh +++ b/stage2/00-packages/00-run-chroot.sh @@ -1,3 +1,16 @@ -echo -e "\n## nymea repo\ndeb http://repository.nymea.io stretch main\n#deb-src http://repository.nymea.io stretch main" | tee /etc/apt/sources.list.d/nymea.list +# Add nymea repository +echo -e "\n## nymea repo\ndeb http://repository.nymea.io stretch main raspbian\n#deb-src http://repository.nymea.io stretch main raspbian" | tee /etc/apt/sources.list.d/nymea.list wget -qO - http://repository.nymea.io/repository-pubkey.gpg | apt-key add - + +# Set repository priority (prefere packages from raspbian section +cat </etc/apt/preferences.d/nymea +Package: * +Pin: release c=raspbian +Pin-Priority: 700 + +Package: * +Pin: origin repository.nymea.io c=main +Pin-Priority: 500 +EOM + apt-get update