Score:0

How to add shell script and python scripts in ubuntu auto-install early-commands section

de flag

I have a requirement to add multiple shell scripts and python scripts in the ubuntu autoinstall early-command section.

All documents tell about only the shell commands passing procedure inside early-commands and non of them are telling about the script passing procedure.

If anyone knows please let me know how to inject scripts inside early-commands, examples would be more helpful.

user-data file is :

#cloud-config

autoinstall:

  version: 1

  identity:

    hostname: ubuntu

    password: "password"

    username: ubuntu

  interactive-sections:

   - network

  locale: en_US

  storage:

    layout:

        name: direct

  ssh:

    allow-pw: yes

    install-server: true

  user-data:

    disable_root: false

  
  early-commands:
  
  - ?                       #need to add scripts here
Andrew Lowther avatar
jp flag
Does this help? https://askubuntu.com/a/1392251/376778
de flag
Thanks but not helped for my requirement.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.