On my homebrew cd the initrd is in the boot folder.
On the Ubuntu CD the initrd is in the casper folder could that bethe problem if it is how can I change the iso. ?
On my homebrew cd the initrd is in the boot folder.
On the Ubuntu CD the initrd is in the casper folder could that bethe problem if it is how can I change the iso. ?
If You Ask A Question, Please Read And Understand The Answer.
We're All Here, Because We're Not All There.
the ISO image is read only. You will have to recreate it as follows:
- Mount you homemade custom iso:
- Copy the contents of the iso to a new folder:Code:sudo mount -o loop -t iso9960 /path/to/the/iso /mnt
Code:mkdir ~/iso- Copy the initrd of the official cd after mounting itCode:sudo cp -a /mnt/* ~/iso
- Recreate the iso image:Code:sudo cp -vf /path/to/official/cd/casper/initrd.gz ~/iso/boot/initrd.gz
Code:sudo mkisofs -b boot/grub/stage2_eltorito \ -no-emul-boot -boot-load-size 4 -boot-info-table \ -V "Custom Live CD" -cache-inodes -r -J -l \ -o ~/live-cd.iso ~/iso
Some Notes:
==========
- Make sure the official cd is working on your hardware.
- Only do the above under two conditions: The first is that both cds have exactly the same kernel version. The Second condition is that your custom cd is created with casper and not live-initramfs (since the official ubuntu cd is created with casper).
- This should work (provided that you are able to boot from the official ubuntu cd) but there is no guarantee it will. So please use Rewritable media to avoid wasting black cds while trying the different solutions to your problem.
Thank you I will try this.
If You Ask A Question, Please Read And Understand The Answer.
We're All Here, Because We're Not All There.
So I have a question. Let's say my ubuntu install is almost 6.7Gb and I want to make a Dual Layer LIVE DVD complete with installer. How can I do this with the limitation in the iso 9660? Can I use UDF somehow?
No you cannot use udf as it is not supported for the time being (neither casper not live-initramfs supports it). But you do not need to use udf becuase after compressing your system into a squashfs it will be about 2.7 GB.
capink - very nice howto.
I am the creator of remastersys - http://www.remastersys.klikit-linux.com and have borrowed some of your ideas to improve how remastersys works.
You can also add a graphical grub boot to this by putting the splash image of your choice in boot of the cd tree and adding the following line above the boot entries:
splashimage=/boot/splash.xpm.gz
Or whatever name you used for the splash image.
Also, a quick question - I have always used "boot=casper" and never had an issue. Where is BOOT=casper needed?
I don't think you need the rw or nopersistent.
BTW, this is the best howto I've seen on this subject to date.
Nice project.
I just started to learn python. I also intend to learn pyqt so maybe I will be able contribute to your project.
Yes this is a nice feature. I already have a link explaining this in the final notes section. Another option is to use grub-gfxboot, this is supposed to produce more fancy graphics but I have not tried it yet.
I think I read somewhere that the BOOT=casper option is checked for by the main casper script before it takes control of the boot process. While the boot=casper option defines the directory where casper looks for the live image.
I have not tested this information, I just took it for granted. But since you are able to produce the same result using only boot=casper it seems it is redundant to use BOOT=casper.
These are indeed redundant.
Thank you for the complement.
Fragadelic, I hope you can help solve people problems that I don't have an answer for if your time permit.
I saw your bit about the grub splash after I posted - lol.
Remastersys right now is using bash and zenity or kdialog for the gui frontend and now that I have things working pretty well, I will start to learn python myself and might convert it over.
I've been doing bash for so long and just find it easy to do and it works for what I need so I just went with it. Its also easier for folks just starting with linux scripting to take a look at and see how I did certain things.
I've looked at a lot of howtos on making ubuntu livecd's but this one is definitely the most complete and very well written one that I've found.
I've bookmarked this thread for future reference for myself.
Please feel free to take a look at remastersys and let me know if you have any suggestions. I still have some cleanup to do but it works pretty well so far on a number of system. It was originally created on Kubuntu and Mint but I now use Klikit-Linux(Kubuntu based) and am part of the team there.
/etc/shadow and /etc/gshadow can stay as long as the normal users are cleaned out of it. You can check /usr/bin/remastersys after you install it to see how I did it. I got my info for the checks directly from how casper looks to see before it creates the livecd user.
Your howto deserves a webpage and not just to be here in the forum where it might get lost.
Let me know if you would like me to put it up on my website and then you can just give the link to folks.
Bookmarks