aus9
Status: Contributor
Joined: 21 Sep 2008
Posts: 278
Location: Australia
Back to top
Posted: Feb 21, 10, 18:06    file into an executable area....does it need database update
Hi

Forgive my ignorance yet again.

I can remaster some isos....using various instructions they offer.

1) If I place an executable in the standard place such as
/usr/sbin
and repack that rootfs /squashfs /cramfs
.....I can run the command with the leading dot

:: Code ::

./usr/sbin/newexecutable


2) What I can not currently do is run it without the leading dot and without the pathway...but .profile has the bin pathways correctly set.

What I am thinking without knowing what I am doing is I need to run some kind of command ......to get the new executable recognised.

The executables are not installed using chroot packagemanagement .....in fact they are not using any package manager....simply copied off hard drive into unpaced rootfs type folders.

------

If anyone has understood what I am trying to do and has an answer I would appreciate it.

regards

gordy aka aus9
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 2541
Location: East Coast, West Coast? I know it's one of them.
Back to top
Posted: Feb 21, 10, 18:41    
Are: /squashfs /cramafs in $PATH?

like so: /squashfs/usr/bin:/squashfs/usr/sbin
and so on?

If you add them, logout of console session, then login again, does the command then work as expected without using ./

That's usually why things won't run.

You can also just see what the path is for real
:: Code ::
cd path/to/usr/sbin
pwd


and see what the actual working directory is, whatever it is, you need to add that to PATH= in /etc/profile.
Display posts from previous:   

All times are GMT - 8 Hours