/snap/subiquity/x1/usr/bin/os-prober: 4: .: cannot open /usr/share/os-prober/common.sh: No such file

Bug #1965110 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity (Ubuntu)
Fix Released
Undecided
Dan Bungert

Bug Description

Trying to install on riscv64 with https://github.com/canonical/subiquity/commit/f9ce537053d90eb6f1dc0a9d082ca0bc102edbfc
I see the following error in the logs:

/snap/subiquity/x1/usr/bin/os-prober: 4: .: cannot open /usr/share/os-prober/common.sh: No such file
Traceback (most recent call last):
  File "/snap/subiquity/x1/lib/python3.8/site-packages/probert/os.py", line 65, in _run_os_prober
    result = subprocess.run(cmd, stdout=subprocess.PIPE,
  File "/snap/subiquity/x1/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['os-prober']' returned non-zero exit status 2.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

This file exists:

/snap/subiquity/x1/usr/share/os-prober/common.sh

These variables are exported (amongst others):

PATH="/snap/subiquity/x1/bin:/snap/subiquity/x1/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
PYTHON="/snap/subiquity/x1/usr/bin/python3.8"
PYTHONPATH="/snap/subiquity/x1/lib/python3.8/site-packages"
SNAP="/snap/subiquity/x1"
SNAP_ARCH="riscv64"

We have
x1/meta/snap.yaml:9: OS_PROBER_SHARE: $SNAP/usr/share

But still this does not work as expected:

/snap/subiquity/x1/usr/bin/os-prober:4
. ${OS_PROBER_SHARE:-/usr/share}/os-prober/common.sh

Revision history for this message
Dan Bungert (dbungert) wrote :

Plan: os-prober will not be used by default, command line option to subiquity will enable os-prober.

Changed in subiquity (Ubuntu):
assignee: nobody → Dan Bungert (dbungert)
status: New → In Progress
Dan Bungert (dbungert)
Changed in subiquity (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.