View previous topic :: View next topic |
Author |
Message |
darren1234 n00b
Joined: 21 Nov 2004 Posts: 62 Location: Vancouver, Canada
|
Posted: Thu Dec 04, 2014 9:58 pm Post subject: Custom LiveUSB without persistance |
|
|
Where should I look for creating a LiveUSB boot that runs my app immediately. Its been many years since I used Gentoo or Linux, so my skills are a bit rusty (i.e.: need a guide or some hints).
The goal is to boot on nearly any x86 based hardware (Mac or PC). There are some boot script tweaks I need to make and I require a few packages to be installed. Where do I start? |
|
Back to top |
|
|
quilosaq Veteran
Joined: 22 Dec 2009 Posts: 1522
|
|
Back to top |
|
|
darren1234 n00b
Joined: 21 Nov 2004 Posts: 62 Location: Vancouver, Canada
|
Posted: Thu Dec 04, 2014 10:30 pm Post subject: |
|
|
Thanks, I had seen that article, but it appears to explain making a LiveUSB based on not changing the ISO image. Is there a way to alter the ISO and include packages like Java 1.7 and others? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
darren1234 n00b
Joined: 21 Nov 2004 Posts: 62 Location: Vancouver, Canada
|
Posted: Thu Dec 04, 2014 11:14 pm Post subject: |
|
|
Thank you Jaglover! That looks awesome and likely just what I need. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Dec 04, 2014 11:26 pm Post subject: |
|
|
Jaglover wrote: | http://www.sysresccd.org/Sysresccd-manual-en_How_to_personalize_SystemRescueCd |
darren1234 ... note that sysrescuecd only has 64bit EFI (and so won't work on x86 Mac). I've been able to replace this with a bootia32.efi (grub2) and modified grub.cfg which works (though I can't provide instructions for creating it as I haven't been able to reproduce subsequently). You can msg me if you want me to provide the compiled version.
best ... khay |
|
Back to top |
|
|
darren1234 n00b
Joined: 21 Nov 2004 Posts: 62 Location: Vancouver, Canada
|
Posted: Fri Dec 05, 2014 1:22 am Post subject: |
|
|
Thanks for point that out khayyam. That is an essential part of what I need from this, but I also need it reproducible. I like the idea of using Grub2 and its flexibility. Maybe I'll try and mess with that as a complete replacement boot loader. I was trying to read up on why EFI even matters today but I haven't found any relevant information on that yet. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Dec 05, 2014 11:31 am Post subject: |
|
|
darren1234 wrote: | Thanks for point that out khayyam. That is an essential part of what I need from this, but I also need it reproducible. |
darren1234 ... you're welcome. I prehaps should have explained a little better ... by "reproducable" I mean build grub2 as a Universal EFI Binary (i386 and x86_64) that uses an standalone grub.cfg, I've not been able to do so since I initally built it (this was some time back ... and I didn't keep notes). The dev's on #grub (irc.freenode.net) haven't been able to point me in the right direction (and quite honestly have been downright unhelpful). So, I've basically continued to use the binary I'd built at that time (hence not being able to provide you with a method of reproducing).
Code: | # file bootia32.efi
bootia32.efi: Universal EFI binary with 2 architectures, i386, x86_64 |
So, you could probably build grub2 (i386) with a standalone grub2.cfg to replace the bootx64.efi on the sysrescuecd ... but the setup is going to be trial and error.
darren1234 wrote: | I like the idea of using Grub2 and its flexibility. Maybe I'll try and mess with that as a complete replacement boot loader. |
Note that the sysrescuecd has an efi.img, which seems to be a stub that then points to the bootx64.efi under /boot/efi/ on the filesystem, with a bootloader like rEFInd it'll autodetect the /boot/efi/bootia32.efi and so the efi.img isn't used (which I assume is simply there to work around booting efi from a CD medium). Anyhow, I'm not entirely sure how this setup works but it may make it tricky to have work for all bootloaders, efi firmwares, machine types.
darren1234 wrote: | I was trying to read up on why EFI even matters today but I haven't found any relevant information on that yet. |
UEFI boot: how does that actually work, then?
The EFI boot process
EFI on Linux
HTH & best ... khay |
|
Back to top |
|
|
darren1234 n00b
Joined: 21 Nov 2004 Posts: 62 Location: Vancouver, Canada
|
Posted: Fri Dec 05, 2014 5:49 pm Post subject: |
|
|
I am 1/3 the way through the first article and have learned huge amounts from it. Thank you so much for sharing that link khayyam!! You made my day. |
|
Back to top |
|
|
|