Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Custom LiveUSB without persistance
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
darren1234
n00b
n00b


Joined: 21 Nov 2004
Posts: 62
Location: Vancouver, Canada

PostPosted: Thu Dec 04, 2014 9:58 pm    Post subject: Custom LiveUSB without persistance Reply with quote

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
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1522

PostPosted: Thu Dec 04, 2014 10:11 pm    Post subject: Reply with quote

Maybe that link will help you:
https://wiki.gentoo.org/wiki/LiveUSB/HOWTO
Back to top
View user's profile Send private message
darren1234
n00b
n00b


Joined: 21 Nov 2004
Posts: 62
Location: Vancouver, Canada

PostPosted: Thu Dec 04, 2014 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Dec 04, 2014 10:34 pm    Post subject: Reply with quote

http://www.sysresccd.org/Sysresccd-manual-en_How_to_personalize_SystemRescueCd
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
darren1234
n00b
n00b


Joined: 21 Nov 2004
Posts: 62
Location: Vancouver, Canada

PostPosted: Thu Dec 04, 2014 11:14 pm    Post subject: Reply with quote

Thank you Jaglover! That looks awesome and likely just what I need.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Dec 04, 2014 11:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
darren1234
n00b
n00b


Joined: 21 Nov 2004
Posts: 62
Location: Vancouver, Canada

PostPosted: Fri Dec 05, 2014 1:22 am    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Dec 05, 2014 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message
darren1234
n00b
n00b


Joined: 21 Nov 2004
Posts: 62
Location: Vancouver, Canada

PostPosted: Fri Dec 05, 2014 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum