Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] making an iso from created system
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
thekeymaker
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2010
Posts: 104

PostPosted: Fri Oct 05, 2012 7:17 pm    Post subject: [Solved] making an iso from created system Reply with quote

I have recently been working on my own custom variation of Gentoo. I, at the moment, have
most of this automated so that a script will run though most of the install steps listed
in the Gentoo handbook and apply my custom tweeks. Now that I have my custom system setup
I am at the point where I would like to make an iso and this is where I have some questions.
Oh, I have also sqaushed my file system.

I would like to use this iso to be loaded on to a USB drive and CD as a Live CD if possible.

If I do this how does it boot? Do I need to install grub?

I am a little more confused because I have been reading about ISOLINUX tools and how you could
make an El Torito CD-ROM or a isohybrid setup.

I guess I am just confused about how all this works at the moment. I guess it would be helpful
if someone could explain this:

How do I take a newly installed custom Gentoo system and make a live cd/usb iso out of it?

Based on how it is created, how do I put it on a device. {dd unetbootin ...}?

How does the boot process work? Do I need grub installed to boot? Does unetbootin install grub?
Does it have to be external to the squashed system?

I don't mind long explanations!

Thank you for any input!! :?:


Last edited by thekeymaker on Sat Oct 06, 2012 12:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8704
Location: ~Brussels - Belgique

PostPosted: Fri Oct 05, 2012 7:38 pm    Post subject: Reply with quote

http://en.gentoo-wiki.com/wiki/Build_Your_Own_LiveCD_or_LiveDVD
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
thekeymaker
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2010
Posts: 104

PostPosted: Fri Oct 05, 2012 9:28 pm    Post subject: Reply with quote

XavierMiller wrote:
http://en.gentoo-wiki.com/wiki/Build_Your_Own_LiveCD_or_LiveDVD


Thank you for the link. I did have a chance to look at that before this post. I guess that brings me to
my next question. Keep in mind I am very new to grub2.

The code in the link used this code to make the iso:

Code:


mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table \ -iso-level 4 -hide-rr-moved -c boot.catalog \ -o ${LIVECD}/livecd.iso -x files ${LIVECD}/target



I don't understand what "-b boot/grub/stage2_eltorito" is for and I don't seem to have that binary in my /boot/grub directory after emerging grub:2.

Did I do something to install grub wrong or is there a different way to rum mkisofs for grub 2?
Back to top
View user's profile Send private message
thekeymaker
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2010
Posts: 104

PostPosted: Fri Oct 05, 2012 9:42 pm    Post subject: Reply with quote

Also did find this interesting link about grub booting from cd and stage2_eltorito:

http://www.gnu.org/software/grub/manual/legacy/Making-a-GRUB-bootable-CD_002dROM.html#Making-a-GRUB-bootable-CD_002dROM
Back to top
View user's profile Send private message
thekeymaker
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2010
Posts: 104

PostPosted: Sat Oct 06, 2012 12:18 pm    Post subject: Reply with quote

Yay!!!

I think I got it working. I did some more reading and searching and found this link:

http://en.gentoo-wiki.com/wiki/Plymouth

Which has the following text at the bottom:

Quote:

Some Grub2 magic:
grub-mkimage biosdisk iso9660 linux configfile -O i386-pc -p "/grub" -o core.img
cat /lib/grub/i386-pc/cdboot.img core.img > eltorito.img

It's ISO-time:
mkisofs -R -b eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table -o dracut.iso iso


This makes you a eltorito.img file which you need for the iso. Now instead of what they ran for mkisofs, I ran the following:

Code:


sudo mkisofs -R -b boot/iso/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table -iso-level 4 -hide-rr-moved -c boot.catalog -o ./livecd.iso -x files $BUILD_DIR



Where $BUILD_DIR is the root of the filesystem to make the image of, and ./livecd.iso is the output, and boot/iso/eltorito.img is the location of the file created previously.

Hope this helps anyone else.
I am marking this as solved for now. I was able to create the iso and load it with virtualbox. At the moment I think that I just have grub setup wrong because it brought me
to the grub command line instead of automatically booting the system. Shouldn't be to hard to get working now!

Thanks again for all input!!!

Helpful Links:

http://www.linuxquestions.org/questions/linux-software-2/stage2_eltorito-missing-884944/
http://en.gentoo-wiki.com/wiki/Plymouth
http://wiki.sabayon.org/index.php?title=UEFI_Boot
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