** Also affects: livecd-rootfs (Ubuntu)
Importance: Undecided
Status: New
** Changed in: curtin
Status: Incomplete => Invalid
** Description changed:
- sudo snap install subiquity --classic
- export SNAP=/snap/subiquity/664
- export PYTHONPATH=/snap/subiquity/664/lib/python3.6/site-packages/
+ [email protected] runs very differently to the tty1 subiquity.
- $ /snap/subiquity/664/usr/bin/python3 -c 'import curtin.util;
print(curtin.util.get_paths())'
- {'curtin_exe': None,
- 'lib': '/snap/subiquity/664/lib/python3.6/site-packages/curtin',
- 'helpers': '/snap/subiquity/664/usr/lib/curtin/helpers'}
+ In seiral-subiquity@ case, it doesn't block starting on snapd as it
+ doesn't use /usr/bin/snap run.
- I think this is due to curtin getting installed as bin/curtin, not as
- usr/bin/curtin inside the subiquity snap.
+ Also, it doesn't execute subiquity.subiquity-service script, meaning
+ that PATH setting there is not exported, causing troubles for curtin to
+ reexec itself, or to find the right python in $PATH.
- Note that:
- $ /snap/subiquity/664/usr/bin/python3 -c 'import curtin.util;
print(curtin.util._installed_file_path("usr/bin/curtin"))'
- None
+ Fix that in both livecd-rootfs & subiquity.
- yet
-
- /snap/subiquity/664/usr/bin/python3 -c 'import curtin.util;
print(curtin.util._installed_file_path("bin/curtin"))'
- /snap/subiquity/664/bin/curtin <- winner
-
- I don't know if we should be forcing subiquity snapcraft to install
- curtin into usr/bin, or if curtin code should be tweaked to try to
- detect curtin in $SNAP/bin/curtin.
-
- Or like if we should append $SNAP/bin to $PATH.
+ https://github.com/CanonicalLtd/subiquity/pull/428
+
https://code.launchpad.net/~xnox/livecd-rootfs/+git/livecd-rootfs/+merge/364888
** Summary changed:
- curtin fails to find itself in subiquity snap
+ curtin fails to find itself in subiquity snap, when running on
[email protected]
** Changed in: livecd-rootfs (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1820604
Title:
curtin fails to find itself in subiquity snap, when running on serial-
[email protected]
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1820604/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs