[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Including git commands in preseed



Todd Maurice wrote:
> OK, new problem.
> 
> If choose to install in user (/usr/ or /user/ as opposed to /root/) no directory is created.
> 
> Command used:
> d-i preseed/late_command string in-target git clone https://github.com/project /usr/project
>
> Any idea how to make the cloning work in /usr/?

Just to check but git isn't a standard command normally installed.
Have you ensured that git is installed at that time?  Would you be
able to tell if the command was not found?

  d-i pkgsel/include string git

Rather than try to do commands inline it is much easier to load them
into a script and then pull the script.  Here is a live example that I
am currently using.

  d-i preseed/late_command string wget -O/target/var/tmp/bootstrap http://despair.proulx.com/medley/medley-bootstrap; in-target sh /var/tmp/bootstrap

Using a script makes things much easier.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: