[Libre-soc-bugs] [Bug 714] New: Coriolis2 Installation as Normal User Script

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Oct 1 19:48:55 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=714

            Bug ID: 714
           Summary: Coriolis2 Installation as Normal User Script
           Product: Libre-SOC's first SoC
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: CONFIRMED
          Severity: normal
          Priority: ---
         Component: Source Code
          Assignee: lkcl at lkcl.net
          Reporter: andrey at technepisteme.xyz
                CC: libre-soc-bugs at lists.libre-soc.org
   NLnet milestone: ---

This bug is for a task given to me (andrey) by lkcl to split the existing
"coriolis2-chroot" script's functionality:
-Schroot creation (delegated to "mk-deb-chroot")
-Installation of dependencies, yosys, coriolis, alliance,
alliance-check-toolkit, as a *normal user*

The original script can be found in "dev-env-setup" repo.

The following strategy was suggested: 
1) take a copy [of "coriolis2-chroot"]
2) remove the parts that set up an schroot [now done by "mk-deb-chroot"]
3) convert anything that requires to be run as a user to just... run as a user
4) convert anything that needs root (make install) to use sudo
5) convert the *existing* coriolis2-chroot to:
  a) call mk-deb-chroot
  b) call the new script created from 1-4 running it
       *in* the newly-created chroot.
       this by actually copying the script over to it

After fixing the Alliance installation problem (documented in bug #696), I'm
carrying on with this task.


Scripts that exist so far:
-To run as root (sudo bash) in the host environment:
"mk-deb-chroot" [WORKING]: Create a schroot environment. Already existed.
"cp-scripts-to-chroot" [WORKING]: Copy the "dev-env-setup" directory to given
chroot (by default you chroot is not able to access the libre-soc git repos
unless you've copied the SSH keys over).
"rm-deb-chroot" [WORKING]: After doing several tests, thought it'd be better to
have a cleanup script if you no longer need a schroot environment. Modifies
your hosts schroot.conf!
"coriolis-install" [IN PROGRESS]: Script to be run by a user once inside your
chroot. For the moment still working on.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list