Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 066b054

Browse files
author
Dmitry Rozhkov
committed
swupd-client_%.bbappend: configure swupd repo URLs
By default swupd checks for updates at http://example.com and in case of fetching from an HTTPS URL it uses a pre-defined public key which is specific to ClearLinux. This patch configures meta-ostro to use Ostro's public repository for software updates by default. Fixes: IOTOS-1754 Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
1 parent 35738b9 commit 066b054

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxVAN5813BmEWRzwsvxZj
3+
Nqre1DD33YGinwQPqBAp+UnwO3GvB9gSE0JExqBkTt9IwAzCsO54y4GBUsDELL5b
4+
ReWi0kzVDFObhmSFXETlniglPf7WondqX29tJhn/Tq90QIDK6lVWxmM+mCl4faPv
5+
21JcqR3rsJVOzwRRM36XOImnUhc3XZEDKTJASUjLpzEB/sL0rGNHcGc8pMGJvYNo
6+
eDqXn43aVyB2OT9tFup1pvbNb4OVy4EWPqx1JUyu6btVC2uRlU+mvNJYal16JTOD
7+
a6BaAvYQ8lSCPixN9mHunr8M/6wYZETISReMX6TYX2j9QwtSt814Fifw3w5DGoiZ
8+
sNcj1t1XpQS+ullSPpnvk0QpqNiPvSuPaeI8xp5zXjPpFaZAiadS0ZI4o5r87dKy
9+
+iTVucxOgp0UsTca5BJROsfLuAL++eYu4v1zURz+IFy6eLERYNE8hXhaJsbsiK6C
10+
ZXozzLyTIr5zINfULua2mXvHBZ/g2mTXsQON5F6cyswQDwjYifuIdD5oFkGEaot7
11+
EfdpnWGJW+b1Y9CazpOKizYNqKs82WlHOvizOiHJPC9DPy3886p8Pazvb+SMeDGB
12+
gDafg7v/cokF9QF929WZ+HyTRFIJep3j09+2nzGTa6rs0YjXexxVCmRymVrHMMYI
13+
C2KPJgl+LwlIpfx8tdKlCD0CAwEAAQ==
14+
-----END PUBLIC KEY-----

meta-ostro/recipes-swupd/swupd-client/swupd-client_%.bbappend

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PACKAGECONFIG_remove = "stateless"
77

88
SRC_URI_append = "file://0001-Disable-boot-file-heuristics.patch \
99
file://efi_combo_updater.c \
10+
file://ostroprojectorg.key \
1011
${@ 'file://efi-combo-trigger.service' if ${OSTRO_USE_DSK_IMAGES} else ''} \
1112
"
1213

@@ -23,6 +24,10 @@ SYSTEMD_SERVICE_${PN} += "${@ 'efi-combo-trigger.service' if ${OSTRO_USE_DSK_IMA
2324
# And activate it.
2425
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
2526

27+
SWUPD_VERSION_URL ?= "https://download.ostroproject.org/updates/ostro-os/milestone/${MACHINE}/ostro-image-swupd"
28+
SWUPD_CONTENT_URL ?= "https://download.ostroproject.org/updates/ostro-os/milestone/${MACHINE}/ostro-image-swupd"
29+
SWUPD_PINNED_PUBKEY ?= "${datadir}/clear/update-ca/ostroproject.key"
30+
2631
do_compile_append() {
2732
if [ "${OSTRO_USE_DSK_IMAGES}" = "True" ]; then
2833
${CC} ${LDFLAGS} ${WORKDIR}/efi_combo_updater.c -Os -o ${B}/efi_combo_updater `pkg-config --cflags --libs glib-2.0`
@@ -39,6 +44,9 @@ do_install_append () {
3944

4045
# Don't install and enable check-update.timer by default
4146
rm -f ${D}/${systemd_system_unitdir}/check-update.* ${D}/${systemd_system_unitdir}/multi-user.target.wants/check-update.*
47+
48+
install -d ${D}${datadir}/clear/update-ca
49+
install -m 0644 ${WORKDIR}/ostroprojectorg.key ${D}${datadir}/clear/update-ca/ostroproject.key
4250
}
4351

4452
pkg_postinst_${PN}_append () {

0 commit comments

Comments
 (0)