makelinux / ubuntu-server-auto-install

Creates any (including 17.04) Ubuntu server unattended installation iso
22 stars 13 forks source link

Updated with UEFI Support and Ubuntu 18.04/18.10 #2

Closed SoarinFerret closed 5 years ago

SoarinFerret commented 6 years ago

Headlines of the changes I made

evertonstz commented 5 years ago

Trying to run your version returns me the following error: xorriso : FAILURE : Given path does not exist on disk: -boot_image system_area='/usr/lib/ISOLINUX/isohdpfx.bin'

SoarinFerret commented 5 years ago

You need to have isolinux and xorrisso installed. You can install both of them with the following command in ubuntu:

sudo apt install isolinux xorriso -y
SoarinFerret commented 5 years ago

@evertonstz Let me know if that helped you. I have that in the updated README file too

evertonstz commented 5 years ago

You need to have isolinux and xorrisso installed. You can install both of them with the following command in ubuntu:

sudo apt install isolinux xorriso -y

I have xorriso and (I think) I have isolinux too. Since I'm on Manjaro, I think the isolinux package is this one: extra/mkisolinux 2013.05-2 [installed] Advanced, modular isolinux bootcd image creation utility I still get the error.

evertonstz commented 5 years ago

After some searching I've found this thread: https://github.com/emerinohdz/arch64-efi32/issues/1 Seems to be related to how manjaro/arch handles things with isolinux maybe, I'm not really familiar with it, but'll keep looking.

SoarinFerret commented 5 years ago

Trying to run your version returns me the following error: xorriso : FAILURE : Given path does not exist on disk: -boot_image system_area='/usr/lib/ISOLINUX/isohdpfx.bin'

It looks like it may be that arch / manjaro install it to a different location? I have that file location hardcoded into the file on line 69:

xorriso -as mkisofs -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \

Could you check that it exists there under /usr/lib/ISOLINUX/? Or could you maybe run find / --name "isohdpfx.bin" and show the output? That command will search your entire install for the file, so you may want to modify it for your needs

evertonstz commented 5 years ago

Trying to run your version returns me the following error: xorriso : FAILURE : Given path does not exist on disk: -boot_image system_area='/usr/lib/ISOLINUX/isohdpfx.bin'

It looks like it may be that arch / manjaro install it to a different location? I have that file location hardcoded into the file on line 69:

xorriso -as mkisofs -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \

Could you check that it exists there under /usr/lib/ISOLINUX/? Or could you maybe run find / --name "isohdpfx.bin" and show the output? That command will search your entire install for the file, so you may want to modify it for your needs

Yep, there's nothing at "/usr/lib/ISOLINUX/". I've found the bin file at "/usr/lib/syslinux/bios/isohdpfx.bin", I took the liberty of changing the script with the new path and after the change the iso is created with no visible errors! It seems arch based distros just store this bin in a different location!

EDIT: just ended testing and the iso installs fine on vmware

SoarinFerret commented 5 years ago

Good to know! I'll spin up a few containers of other distros and figure out where they all store it, and update the script to look in multiple locations