Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-s source iso sed can't read #11

Open
jasonafernandez opened this issue May 4, 2021 · 3 comments
Open

-s source iso sed can't read #11

jasonafernandez opened this issue May 4, 2021 · 3 comments

Comments

@jasonafernandez
Copy link

I am trying to specify a source iso file and the process fails out.

bash ubuntu-autoinstall-generator.sh -a -u user-data -d /home/laughingman/ubuntu-autoinstall.iso -s /home/laughingman/ubuntu-autoinstall-generator/hirsute-live-server-amd64.iso -k
[2021-05-04 16:31:10] 👶 Starting up...
[2021-05-04 16:31:10] 📁 Created temporary working directory /tmp/tmp.ArUDdXqLil
[2021-05-04 16:31:10] 🔎 Checking for required utilities...
[2021-05-04 16:31:10] 👍 All required utilities are installed.
[2021-05-04 16:31:10] ☑️ Using existing /home/laughingman/ubuntu-autoinstall-generator/hirsute-live-server-amd64.iso file.
[2021-05-04 16:31:10] 🤞 Skipping verification of source ISO.
[2021-05-04 16:31:10] 🔧 Extracting ISO image...
[2021-05-04 16:31:11] 👍 Extracted to /tmp/tmp.ArUDdXqLil
[2021-05-04 16:31:11] 🧩 Adding autoinstall parameter to kernel command line...
sed: can't read /tmp/tmp.ArUDdXqLil/isolinux/txt.cfg: No such file or directory
[2021-05-04 16:31:11] 🚽 Deleted temporary working directory /tmp/tmp.ArUDdXqLil

Any ideas?

On another note, thank you for this script. It saves a lot of time doing manual steps. Keep up the great work.

@covertsh
Copy link
Owner

covertsh commented May 15, 2021

Hi, thank you for your report. I am able to replicate the issue and it turns out that the Ubuntu 21.04 (Hirsute Hippo) ISO does not follow the same structure as the 20.04 one does. This causes sed to fail because, as it prints out, the file does not exist. For now the only supported OS ISO is Ubuntu 20.04 server, however I have started working on adding support for 21.04 as well. I just need to figure out the right mkisofs command because the one currently in use doesn't work for the new ISO.

Separately, thank you for your feedback. It is much appreciated.

@dabosch
Copy link

dabosch commented Oct 15, 2021

Do you already have a fix for this? I'd like to create an autoboot image for 21.10, which has the same issue.

@robcharlwood
Copy link

I have the same issue with 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants