Apps :: run mydsl-load when starting dsl



Hello,

I succeeded in remastering and added the application "git" to my "my.iso". I also removed dillo and change the path for user dsl.

In a second step, I remastered in that way that i added the mydsl application jre1_5_0, because "git" needs java.

When I boot the image from CD, everything works fine ... it boots, installs java, and starts the application "git" (I configured that in .xinitrc).

And now to my problem.

I tried to convert that installation  to a PXE booting image.

It boots, the application "git" is there, the changes in xinitrc and the modified PATH are there ...

What is missing is the mydsl-java!!

I put the file "jre1_5_0.tar.gz in the / level and tried to start it with

mydsl-load jre1_5_0.tar.gz

This produces the following message when booting:

"please mount media containing optional dir and try angain"

any ideas?

Rigas

Your mydsl file may have become corrupted. Shuffling a lot of files around, particularly very large files, on an ext2 filesystem can quickly cause fragmentation (assuming that's the correct term to use in this case?).  You should fsck your ext2 partition(s) on a regular basis (every couple of months at least), and run md5 check on your mydsl file.
PXE-packed DSL is similar to using toram option. The entire image is in the initial ramdisk. This prevents the need to search for the KNOPPIX image. Which also means no way to auto search for mydsl directory as the cdrom or other boot device is not mounted. That is why you are seeing that message. Recall that PXE-packing ( loaded in the intital ramdisk ) was done to prevent the need for nfs for the typiclal module search and attempting mounting of the remote boot device. You might try booting the PXE server with sshd and then mounting the remote boot device (PXE server) from the booted client, then use fuse/sshfs and then try to mydsl-load your extension.
Hello,

thanks for your answers.

I understand that the auto search for mydsl archives does not work in the pxe environment.

For this reason I copied the jre1_5_0.tar.gz file into / and tried to install it using

mydsl-load jre1_5_0.tar.gz

using a script, that is started automatically at boot-time with .xinitrc.

I DO have a working pxe image, in which I can - as user dsl - start a script manually, that

installs the java mydsl-package (lying in dir /)
extends the path for java/bin
starts application git.

The only thing I want achieve is that this happens automatically after the start of the system. (I try to built a music box for the living room ... the rest of the family does not want to start a script in a linux command shell ....)

What is the difference between starting a script as user dsl or starting the script via .xinitrc?

Any ideas?

Rigas

.xinitrc is executed when startx is issued. In other words, this is used when the X starts (for fluxbox, the gui, etc.).  As such, this file should be used only for X specific apps... but if you don't care it doesn't matter :P
Next Page...
original here.