Score:0

How to prompt for user Hostname while booting Ubuntu22.04 live-cd customization

gm flag

I'm customizing Ubuntu22.04 live-cd. I know how to hard code hostname while installing. But, my requirement is to prompt from hostname and take user input while installing. Could anyone please help me or guide me to the right source? Thanks in advance. I'm really stuck with this.

Score:0
jp flag

Are you using autoinstall? You can try specifying interactive-sections.

For example, an autoinstall file with this snippet will prompt for the hostname. The same section also prompts for an initial user name and password, and may result in other prompts during the install.

#cloud-config
autoinstall:
  interactive-sections:
    - identity
I sit in a Tesla and translated this thread with Ai:

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.