PDA

View Full Version : how to add symbolic link to root



fosfaglo
12-09-2004, 02:43 AM
I have been having fun remastering Knoppix to create a portable development environment for a particular project. I removed some software and installed lots of new software I need and all works well.

Most of the process is black magic to me and I am using the excellent knoppix-remaster script which works a charm.

I want to put a symbolic link in the root directory (/) - but this hasn't worked for me.

I chroot into the remaster system and creating the link I require. I then go through the create compressed file system and create iso steps, but when I boot my new system, the link I created is missing from /

Can anyone tell me how to include a symbolic link in the root directory of my re-mastered Knoppix?

jackiechen858
12-09-2004, 10:28 PM
I am also a new user for knoppix, so forgive me if I made wrong suggestion :-)

the /root in Knoppix is in ramdisk, and Knoppix doesn't copy file from /KNOPPIX/root ro /root .
what you can do is create a script in /etc/init.d/myscript
ln -s /etc/init.d/myscript /etc/rc5.d/S50myscript

and put somthing like ln -s ... ... there.

fosfaglo
12-10-2004, 03:51 AM
Ah so easy! Thanks for the mighty clue, my brain was fogged up from long hard day at the computer.