UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to make a live cd with my repository added. I added the usual lines to /etc/apt/sources.list, added the signing key, then installed and updated some packages. But when I installed the CD, plymouth had reverted to Ubuntu's version, and although other packages were still installed, apt-getting the source would download the Ubuntu version. My unique packages behaved normally. I checked the sources file and my repository was no longer there.
I'm trying to make a live cd with my repository added. I added the usual lines to /etc/apt/sources.list, added the signing key, then installed and updated some packages. But when I installed the CD, plymouth had reverted to Ubuntu's version, and although other packages were still installed, apt-getting the source would download the Ubuntu version. My unique packages behaved normally. I checked the sources file and my repository was no longer there.
Try using APTonCD or the Ubuntu Customization Kit; both of these tools should work. I would try UCK first to create the CD and then APTonCD to add the repository to the disk. You can also just use APTonCD to create a non-bootable disk with just your repo on it.
If you have to put the repository locally on the CD, not easily. But if you link to an online repository, you can rebuild the casper image with a custom /etc/apt/sources.list and then boot the CD and see what you get.
If you have to put the repository locally on the CD, not easily. But if you link to an online repository, you can rebuild the casper image with a custom /etc/apt/sources.list and then boot the CD and see what you get.
Rebuilding casper! Sounds just like what I didn't do. How would I do that?
I can't manage to find anything on how to rebuild casper. I found how to rebuild the initrd.gz image, but that didn't help. I tried looking at the source of casper, and found nothing useful.
I've already been building manually for a while with this guide. I don't see anything about the sources.list in this guide. I tried looking at the source of the Ubuntu Customization Kit, but didn't see how that did it either.
Edit: I found this line in the source code.
Quote:
Note 3: sources.list changes are not propagated to installed system.
I've already been building manually for a while with this guide. I don't see anything about the sources.list in this guide. I tried looking at the source of the Ubuntu Customization Kit, but didn't see how that did it either.
Edit: I found this line in the source code.
So no leads yet. :|
The reason why the sources.list is not propagated to the installed system is because, once built, the casper is read-only. You have to rebuild /casper/filesystem.squashfs with a custom sources.list to be able to add your repository.
And just out of curiosity: Is it a PPA you are trying to add, or a totally different repo altogether? I have looked for a /muscovy PPA, to no avail.
Edit: And the Ubuntu Customization Kit is to make the repository local (as in the /pool directory on the CD) so that the CD doesn't have to go online to find it.
And the LinAccess link does mention the rebuilding of casper, while the help.ubuntu.com link doesn't.
After doing much more looking, it seems casper has nothing to do with this. Rebuilding casper, unless I'm severely mistaken, isn't a part of the problem.
I looked through the source of ubiquity and found a lot of stuff to suggest it's to be added in there, to be available in the installed system, instead of just the live boot.
I hope I'm not jumping the rails with this. :|
Edit: It's definitely something in the apt-setup component of ubiquity. Also, it is a PPA I'm adding.
Edit2: apt-setup/release-files contains the archives that are added after installation. However, I'm still figuring out how to make one of the files myself.
You may edit the sources.list in the chroot to add a line from a PPA, if you need. You will need to add the PPA's key to your chroot's package manager. On the PPA's overview page you'll see the PPA's OpenPGP key id. It'll look something like this: 1024/12345678. Copy it, or make a note of, the portion after the slash, e.g: 12345678. This key will be added once we enter the chroot.
Code:
sudo chroot chroot
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts
export HOME=/root
export LC_ALL=C
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678 #Substitute "12345678" with the PPA's OpenPGP ID.
apt-get update
apt-get install --yes dbus
dbus-uuidgen > /var/lib/dbus/machine-id
What you have to do is debootstrap a directory, copy some config files (including your sources.list with the PPA) into that directory, and then chroot into that directory, adding your PPA'a GPG key once you're in. And then, you can install ubuntu-desktop to the chroot, clean up and exit. Then, build casper out of the chroot.
Last edited by Kenny_Strawn; 06-06-2010 at 01:27 PM.
Just to clarify, even though the documentation for editing an existing live cd doesn't mention editing sources.list, I've still been doing it. I didn't see anything in apt-setup that supports editing sources.list manually at all.
Files in apt-setup/release-files (apt-setup is in ubiquity) are templates for new repositories to add. It rebuilds sources.list upon install.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.