• =?US-ASCII?Q?Re=3A_At_what_time_of_the_install_process_?= =?US-ASCII?Q?

    From Holger Wansing@21:1/5 to All on Sun Dec 26 17:50:02 2021
    Am 26. Dezember 2021 17:30:03 MEZ schrieb john doe <johndoe65534@mail.com>: >Debians,

    From a preseed file I need to download and execute as the last command
    a script.
    I'm playing with 'd-i preseed/run string foo.sh' the script execute >successfully but does not look to be executed as the last command in the >install process.

    Can someone confirm when 'preseed/run' is executed?

    In other words, what is the best way to download and execute a script at
    the end of the install process.

    Not exactly answering your question, but the installation-guide
    has a chapter about this, see https://d-i.debian.org/manual/en.amd64/apbs05.html

    I guess, "preseed/late_command is what you want...

    Holger


    --
    Sent from /e/ OS on Fairphone3

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Wansing@21:1/5 to All on Wed Dec 29 16:40:02 2021
    Hi,

    Am 26. Dezember 2021 19:18:26 MEZ schrieb john doe <johndoe65534@mail.com>:
    On 12/26/2021 5:44 PM, Holger Wansing wrote:


    Am 26. Dezember 2021 17:30:03 MEZ schrieb john doe <johndoe65534@mail.com>: >>>
    Can someone confirm when 'preseed/run' is executed?

    In other words, what is the best way to download and execute a script at >>> the end of the install process.


    [...]

    Actually I was more hoping for an equivalent of 'preseed/run' to the >'preseed/late_command'.
    The late_command will not per default download the *.sh file.

    The preseed/run part is documented in chapter B.5.3 "Chainloading of preconfiguration files":
    https://d-i.debian.org/manual/en.amd64/apbs05.html

    So I guess this not a functionality to be executed at the end of
    installation, it only makes sense somewhere at the beginning.


    Holger


    --
    Sent from /e/ OS on Fairphone3

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Wansing@21:1/5 to All on Wed Dec 29 22:30:02 2021
    Hi,

    Am 29. Dezember 2021 17:15:25 MEZ schrieb john doe <johndoe65534@mail.com>: >While I was looking to understand what was going on, I came across (1)
    and this is where Ubuntu differs from Debian:

    "on a web server. In this example, if the preseed file sets preseed/run
    to /scripts/late_command.sh then the file will be fetched from >http://autoserver.example.com/d-i/focal/./scripts/late_command.sh."

    I would love to see a rewording of the above text which would clearly
    state at what time the command is executed!!! :)

    I realy appreciate your help.

    1) https://help.ubuntu.com/lts/installation-guide/s390x/apbs02.html

    The part of the Ubuntu manual you are referring to above is also existing in the Debian one:
    https://d-i.debian.org/manual/en.amd64/apbs02.html#preseed-auto


    Holger



    --
    Sent from /e/ OS on Fairphone3

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)