PDA

View Full Version : Controling directory structure on a remastered CD



fuzzy
08-29-2003, 11:57 AM
Hi,

I appologize if my questions have been answerd before
or if they stem from lack of linux savy :)
I have been looking everywhere for a lead and couldn't find the answer...

I have bee trying to remaster a CD using custom directory
structres.
The remaster process works great thanks to the instructions provided in the FAQ.

But I have 2 problems:

1. After remastering and booting, directories like /var which are mapped to /ramdisk/var (which is writable), contain symlinks to /Knoppix/Var (which is not writable).

I have noticed that all the executable files inside /var become symlinks to /Knoppix/var/ and other files don't change.
When I look at my original source directory the executable files are there, they are not symlinks !!!

My question is how do I control which directories point
to the ramdisk and how do I prevent Knoppix from
replacing my executables with symlinks to the non writable CD.


2. I need to add directories to the remastered root
and have them writable.
I was thinking of adding symlinks.
Where should I add the symlinks ?
Is the /KNOPPIX/knoppix.sh the right place to do that ?

Thank you for your help

Fuzzy

arkaine23
08-29-2003, 08:04 PM
I think all that symlinking takes place inside miniroot.gz.

Why not just add your directories to /home/knoppix, which is in ramdisk and writeable? To do that, all you'd have to do is set them up and then copy them over into the /etc/skel on your mounted partition with your remaster's source files. Edit /etc/X11/Xsession.d/45xsession in order to include them in the things that get copied over to /home/knoppix when it is created.

fuzzy
08-29-2003, 10:03 PM
Hi Arkane,

Thank you for the reply.

I will look into the config files you mentioned.

The problem is that I need to preserve directory
structure, I need /var to stay writable and with
no symlinks.