Score:0

Add script to preseed Ubuntu and enable secure boot

jp flag

I created customize Ubuntu ISO in Cubic with preseed file, but I would like to add script in late command, but it doesn't work. I tried a lot of ways, but I still have a problem. I added script in this in preseed folder:

after-inst script

And that's my preseed late_command:

d-i preseed/late_command string \
in-target chmod +x /target/root/after-inst.sh; \
in-target /bin/bash /root/after-inst.sh; \

I tried also:

d-i preseed/run string after-inst.sh

I'm not sure I have a good path to script, maybe here is problem? I tried change path but it didn't help

And second question: Is it possible to enable secure boot in customized ISO? I thought about added some commands in script if it start working

us flag
If you get the latest version of Cubic (2021.12.66), you won't have to make your script executable, so you can remove the `chmod` line from your preseed commands. (See [Bug #1954558](https://bugs.launchpad.net/cubic/+bug/1954558)). Also, `d-i preseed/late_command` does not work in Ubuntu. Use `ubiquity ubiquity/success_command` instead.
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.