Skip to content

Commit

Permalink
Also use [trusted=yes] for deploying to devices
Browse files Browse the repository at this point in the history
Apt in newer Ubuntu won't install from unsigned, local repo by default.
To let it install, add `[trusted=yes]` in sources.list. This is the same
thing we do in  #38, but now on the device instead of in the container.
  • Loading branch information
peat-psuwit authored and mardy committed Jun 11, 2022
1 parent 0743954 commit 199de4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crossbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ deploy_deb () {
if ! device file_exists /tmp/repo/$CREATE_REPO_SCRIPT ; then
device push $SCRIPT_DIR/$CREATE_REPO_SCRIPT /tmp/repo/
device exec /tmp/repo/$CREATE_REPO_SCRIPT /tmp/repo
device exec "printf 'deb file:/tmp/repo/ /\n' > /tmp/repo/sources.list"
device exec "printf 'deb [trusted=yes] file:/tmp/repo/ /\n' > /tmp/repo/sources.list"
device exec "cp /etc/apt/sources.list /tmp/repo/all.list"
device exec "cat /tmp/repo/sources.list >> /tmp/repo/all.list"
SERIES=$(device exec "lsb_release -cs" | tr -d '\r')
Expand Down

0 comments on commit 199de4a

Please sign in to comment.