Project

General

Profile

Actions

Support #34

closed
EJ JB

What's the right way to launch "dnf install..." from within a non-root binding ?

Support #34: What's the right way to launch "dnf install..." from within a non-root binding ?

Added by Emmanuel Jubera [SAFT] over 3 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11/23/2022
Due date:
% Done:

0%

Estimated time:
Hardware platform:
Solidrun (aarch64)
OS Affects Version/s:
arz-1.0
OS Fix Version/s:
Labels:

Description

In order to perform a system update my binding needs to launch dnf install....
But dnf can only be launched by user root, whereas my binding is at the moment started as user rp-owner like shown below:

BMS2ORP_BINDING=bms2orp-binding
RP_USER=rp-owner
AFM_CMD="runuser -u ${RP_USER} -- afm-util"
${AFM_CMD} start ${BMS2ORP_BINDING} > /dev/null

Please detail how this problem can be solved within redpesk framework.

SD Updated by Sebastien Douheret [IoT.bzh] over 3 years ago Actions #1

  • Assignee changed from Vincent Rubiolo to José Bollo

SD Updated by Sebastien Douheret [IoT.bzh] over 3 years ago Actions #2

  • OS Affects Version/s arz-1.0 added
  • OS Affects Version/s deleted (arz-1.0.0)

SD Updated by Sebastien Douheret [IoT.bzh] over 3 years ago Actions #3

  • Target version changed from arz-1.0-update to arz-1.0.2

JB Updated by José Bollo about 3 years ago Actions #4

  • Status changed from New to Submitter feedback needed

newer version of the spawn-binding are currently evaluated.

We need to get more detail on the need:

  • is it "dnf install a-predefined-application"?
  • is it "dnf install a-parametric-application"?
  • is it also "dnf update/upgrade"?

EJ Updated by Emmanuel Jubera [SAFT] about 3 years ago Actions #5

Hello Jose,

The idea was to have spawn-binding launching a shell script that would run dnf to install a few rpms.
The list of rpms can vary but support for "dnf update/upgrade" isn't required.

Emmanuel.

EJ Updated by Emmanuel Jubera [SAFT] over 2 years ago Actions #6

  • Priority changed from High to Normal

Priority decreased to normal as a workaround was developed to allow installation of rpms with dnf.

SD Updated by Sebastien Douheret [IoT.bzh] over 2 years ago Actions #7

  • Target version changed from arz-1.0.2 to arz-1.1-update

JB Updated by José Bollo 8 months ago Actions #8

  • Status changed from Submitter feedback needed to Closed
Actions

Also available in: PDF Atom