UbuntuAsahi / ubuntu-asahi

Native Ubuntu installations for Apple silicon hardware
https://ubuntuasahi.org/
870 stars 27 forks source link

Build a working Live Install USB image #26

Open tobhe opened 1 year ago

tobhe commented 1 year ago

Having a working live installer would allow us to utilize all the install time configuration options that gives us such as custom partitioning, root on zfs and full disk encryption.

We would still have to provide a curl | bash install script to run in macOS to set up everything up to u-boot because Apple does not natively support USB booting (and we need access to the firmware shipped in macOS).

tobhe commented 1 year ago

An initial live image is available at https://files.tobhe.de/. It does not properly handle firmware loading and the installer does not actually work but it is good enough to use as last resort to fix a broken system or to manually set up full disk encryption.

rakshith-ravi commented 1 year ago

An initial live image is available at https://files.tobhe.de/. It does not properly handle firmware loading and the installer does not actually work but it is good enough to use as last resort to fix a broken system or to manually set up full disk encryption.

Hi @tobhe. Thank you so much for a live image. However, I'm not entirely sure how to use this image though :sweat_smile:. Could you please help me with the instructions on how to use this?

tobhe commented 1 year ago

@rakshith-ravi That probably depends on what you are trying to achieve.

The image needs to be written to a usb drive with dd like any regular USB installer. To use the USB image you will need to have the regular Ubuntu Asahi or any kind of Asahi Linux installation up to the u-boot bootlader installed on your system. You can then boot from USB with the run bootcmd_usb0 command in the u-boot prompt.

As explained above this is not the regular way to use Ubuntu Asahi, the image is really only useful to have a system rescue environment.

rakshith-ravi commented 1 year ago

Ahh, got it. I was trying to get a full-disk encryption environment setup with the default installer. I guess I should perhaps wait for #6 to get resolved?

tobhe commented 1 year ago

Ah makes sense. There have been successful attempts to do that with the live disk but it isn't trivial. Basically boot from live disk, set up your encrypted disks and then manually set up the root disk in the cryptlvm. You will likely also need to make /boot a separate partition.