LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Grafpup
User Name
Password
Grafpup This forum is for the discussion of Grafpup Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-28-2007, 02:44 PM   #1
emlsnws
LQ Newbie
 
Registered: May 2007
Location: UK
Distribution: Grafpup
Posts: 28

Rep: Reputation: 15
Question probepart during grafpup startup?


Hi,

I've had a bit of trouble with a script that I want to run at startup. It uses 'probepart' so maybe Dougal is the guy to help here.

(It's SimonW from the murga-linux forums, hi Dougal).

Basically I run probepart in a shell script called from rc.local.
The error message I get is :
//.config/tmp/probepart: No such file or directory.

I'm still on the beta at present. Do you have any ideas? The script runs fine once startup is over. It's quite cool, mounts all available drives. If I could post attachments here, I would post it.

Thanks,
Simon.
 
Old 05-28-2007, 03:06 PM   #2
Nathan F
Grafpup Developer
 
Registered: Jun 2006
Location: Houston, TX
Distribution: Grafpup, Dyne::Bolic
Posts: 63

Rep: Reputation: 15
Quote:
//.config/tmp/probepart: No such file or directory
The ".config" part clued me in. When the modifications were made to probepart I think Jason changed anything referring to /tmp to $HOME/.config so that it would work for more than one user (if a temp file were written by root then it could not later be overwritten by another user). This is actually a good thing in most cases, but since nobody is logged in while rc.local is running the $HOME variable is empty. This clues me in to a couple other problems as well, which have been plaguing scripts like "xlogin" and "xorgwizard".

I think it could be change3d so that instead of putting the temp files in $HOME/.config/tmp, they just go into /tmp and are either deleted when probepart exits, or else have the user's name as a suffix (eg. probedisk_root). In the case of the former, the temp files would just not exist to cause problems with other users later. In the case of the latter they would be named differently, and even if it ran before logging in then you would just get "/tmp/probedisk_" rather than "/tmp/probedisk_root", but any references to the temp file later in the script would not expect to find the "root" suffix anyway so things should function fine.

Anyway, this is a bug and should go on the tracker, because I'm not going to have a chance to go through that script and others which might have the same problem for a while. But hopefully I've given you or someone else enough to go on for now.

Nathan
 
Old 05-28-2007, 04:56 PM   #3
emlsnws
LQ Newbie
 
Registered: May 2007
Location: UK
Distribution: Grafpup
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks Nathan,

You got me thinking of a workaround -- I defined HOME in my script thus:

HOME=/root

I was hoping it would be inherited by the probepart instance. It seemed to be, as probepart then worked well!

Since my scripts are run from rc.local I guess they are run with root privileges, so it's the right location for me. I could have used anywhere below which there was a .config/tmp directory tree.

I'll try to add it to the tracker and mention the workaround too. Never done that before, cheers,
Simon.
 
Old 05-28-2007, 08:47 PM   #4
Nathan F
Grafpup Developer
 
Registered: Jun 2006
Location: Houston, TX
Distribution: Grafpup, Dyne::Bolic
Posts: 63

Rep: Reputation: 15
Simon -

I went ahead and added this to the tracker already. Since the probepart script was pretty short I went ahead and made the mods I mentioned to it, moving the temp file to /tmp and just deleting it when probepart exits. So far it seems to be fine. I'm building rc2 right now, which will probably be blessed as the final should nothing else major come up.

Nathan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Welcome to the Grafpup Linux Forum jeremy Grafpup 4 12-07-2008 03:25 PM
Grafpup 2.0 RC1 mike sumner Grafpup 4 05-28-2007 05:05 PM
Upgrading to Grafpup beta to 2.0rc1 emlsnws Grafpup 1 05-28-2007 10:44 AM
No lefty mouse for grafpup steve s. Puppy 13 09-23-2006 08:37 AM
GrafPup - Live CD second time run problem waspinagermanhelmet Linux - Distributions 6 05-04-2006 04:39 PM


All times are GMT -5. The time now is 07:37 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration