Skip to content

Instantly share code, notes, and snippets.

@avinash-palleti
Created October 19, 2018 02:56
Show Gist options
  • Select an option

  • Save avinash-palleti/3ee1641d4ae0ac9786e13f2ac1729dda to your computer and use it in GitHub Desktop.

Select an option

Save avinash-palleti/3ee1641d4ae0ac9786e13f2ac1729dda to your computer and use it in GitHub Desktop.
irc chat
(09:19:06 IST) palletiavi: Hi Douglas
(09:19:27 IST) palletiavi: This is Avinash from Safety Critical Linux team Bangalore
(09:19:56 IST) palletiavi: We are working on some poc using clearlinux, requirement is to create docker image from mixer workspace
(09:20:15 IST) palletiavi: I see you are owning github repo for clearlinux docker images DEPENDS += "libdrm libpciaccess cairo udev glib-2.0 libxv libx11 libxext libxrandr procps libunwind"
(09:20:24 IST) palletiavi: https://github.com/clearlinux/docker-brew-clearlinux
(09:21:22 IST) palletiavi: Can you please help me to generate base.tar.xz from mixer workspace
307: is a registered nick
(09:30:34 IST) wdouglas: palletiavi: With your mix content generated you can use swupd to create the chroot that you can then tar up. swupd verify --install is the command to use, it will need to be passed --certpath, --versionurl, --contenturl, --format, --path (note the path must exist first before running verify), and --manifest
(09:57:45 IST) palletiavi: Thanks much Douglas. Will try that out and let you know
(10:36:23 IST) wdouglas: So I tried my own mix and prodded it enough to get the following that I verified works if you want an exact command: sudo swupd verify --install -u file:///srv/verts/mix/update/www -p /home/wdouglas/p -S /home/wdouglas/ps -C Swupd_Root.pem -m 10 -F 25
(10:36:35 IST) wdouglas: Where /home/wdouglas/p was created before running the command
(10:37:08 IST) wdouglas: And it was otherwise run from /srv/verts/mix where the Swupd_Root.pem file existed
(Thursday 27 September 2018 04:41:19 IST) palletiavi: Thanks Douglas. it is working. I ran the command and i can see all the content in given path. Will create base.tar.gz from that and try creating docker image
(09:56:26 IST) wdouglas: Okay, good luck =)
(Thursday 04 October 2018 11:56:10 IST) palletiavi: Hi Douglas
(11:56:26 IST) palletiavi: I dont see swupd utility inside docker image
(11:56:50 IST) palletiavi: But when i use release.img from same mixer workspace i can see swupd in VM
(11:58:15 IST) palletiavi: I ran below command "sudo swupd verify --install -u file:///home/arpallet/mixer/update/www -p /home/arpallet/p -C Swupd_Root.pem -m 20 -F 25"
(11:59:09 IST) palletiavi: After that i can see rootfs contents in /home/arpallet/p
(11:59:27 IST) palletiavi: but there is no 'swupd' at usr/bin/ directory
(11:59:41 IST) palletiavi: Am i missing anything
(10:16:40 IST) wdouglas: palletiavi: swupd is part of the os-core-update bundle swupd verify install just adds the os-core bundle. You'll need to 'sudo swupd bundle-add -u file:///home/arpallet/mixer/update/www -p /home/arpallet/p -C Swupd_Root.pem os-core-update (and any other bundles you might want) to get them
(Friday 05 October 2018 09:20:19 IST) palletiavi: I will add os-core-update bundle for now. Our goal is to have docker image which can be used in continuous integration that can fetch updates from our mixer workspace and verify bundles.
(09:20:48 IST) palletiavi: What all other bundles you add when you create base.tar.xz which is located at https://github.com/clearlinux/docker-brew-clearlinux
(10:07:11 IST) wdouglas: Only os-core and os-core-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment