[Cooker] cleaning /tmp on boot

View: New views
7 Messages — Rating Filter:   Alert me  

[Cooker] cleaning /tmp on boot

by Tim12 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've noticed the option to "Clean /tmp at each boot" in Mandriva Control
Centre->Set up boot system->Advanced. What exactly does this do? Is it
setting a grub option and if so which one (I can't seem to see anything
obvious in the menu.lst?

I ask because I want to enable this on a RHEL machine.

Re: [Cooker] cleaning /tmp on boot

by Götz Waschk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jul 2, 2009 at 4:17 PM, Tim Edwards<tkedwards@...> wrote:
> I've noticed the option to "Clean /tmp at each boot" in Mandriva Control
> Centre->Set up boot system->Advanced. What exactly does this do? Is it
> setting a grub option and if so which one (I can't seem to see anything
> obvious in the menu.lst?

Hi Tim,

check /etc/init.d/mandrake_everytime. If CLEAN_TMP is set in
/etc/sysconfig/system, this init script cleans /tmp, except for the
files that must stay there.


> I ask because I want to enable this on a RHEL machine.
Then you'll have to port this, shouldn't be too hard.

Regards, Götz



--
AL I:40: Do what thou wilt shall be the whole of the Law.

[Cooker] Re: cleaning /tmp on boot

by mangoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Götz Waschk wrote:

> On Thu, Jul 2, 2009 at 4:17 PM, Tim Edwards<tkedwards@...> wrote:
>> I've noticed the option to "Clean /tmp at each boot" in Mandriva Control
>> Centre->Set up boot system->Advanced. What exactly does this do? Is it
>> setting a grub option and if so which one (I can't seem to see anything
>> obvious in the menu.lst?
>
> Hi Tim,
>
> check /etc/init.d/mandrake_everytime. If CLEAN_TMP is set in
> /etc/sysconfig/system, this init script cleans /tmp, except for the
> files that must stay there.
>
>
>> I ask because I want to enable this on a RHEL machine.
> Then you'll have to port this, shouldn't be too hard.

Or, just mount /tmp as a tmpfs filesystem.


--
Tomasz Chmielewski
http://wpkg.org

Re: [Cooker] Re: cleaning /tmp on boot

by Frank Griffin-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tomasz Chmielewski wrote:

> Götz Waschk wrote:
>>
>> check /etc/init.d/mandrake_everytime. If CLEAN_TMP is set in
>> /etc/sysconfig/system, this init script cleans /tmp, except for the
>> files that must stay there.
>>
>>> I ask because I want to enable this on a RHEL machine.
>> Then you'll have to port this, shouldn't be too hard.
>
> Or, just mount /tmp as a tmpfs filesystem.
>

Interesting.  Every MDV cooker system I've built for years has had this
option checked, and in every one of them /tmp *is* a tmpfs filesystem.
Several months ago in this ML (or maybe it was on a bug), somebody asked
what the checkbox did, and I replied that it made /tmp a tmpfs.  Fred
said I was wrong.  Now, I like the fact that it *is* a tmpfs, but if
checking the "clean" box during the install isn't adding that line to
/etc/fstab, then what is ?  I'm not doing it myself.

Re: [Cooker] cleaning /tmp on boot

by Tim12 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Thu, 02 Jul 2009 12:23 +0200, "Götz Waschk" <goetz.waschk@...>
wrote:

> Hi Tim,
>
> check /etc/init.d/mandrake_everytime. If CLEAN_TMP is set in
> /etc/sysconfig/system, this init script cleans /tmp, except for the
> files that must stay there.
>
>
> > I ask because I want to enable this on a RHEL machine.
> Then you'll have to port this, shouldn't be too hard.
>
> Regards, Götz

Thanks, I'll look into it.

Re: [Cooker] Re: cleaning /tmp on boot

by Thomas Backlund :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Frank Griffin skrev:

> Tomasz Chmielewski wrote:
>> Götz Waschk wrote:
>>> check /etc/init.d/mandrake_everytime. If CLEAN_TMP is set in
>>> /etc/sysconfig/system, this init script cleans /tmp, except for the
>>> files that must stay there.
>>>
>>>> I ask because I want to enable this on a RHEL machine.
>>> Then you'll have to port this, shouldn't be too hard.
>> Or, just mount /tmp as a tmpfs filesystem.
>>
>
> Interesting.  Every MDV cooker system I've built for years has had this
> option checked, and in every one of them /tmp *is* a tmpfs filesystem.
> Several months ago in this ML (or maybe it was on a bug), somebody asked
> what the checkbox did, and I replied that it made /tmp a tmpfs.  Fred
> said I was wrong.  Now, I like the fact that it *is* a tmpfs, but if
> checking the "clean" box during the install isn't adding that line to
> /etc/fstab, then what is ?  I'm not doing it myself.


Well, in that case Fred is wrong!

Selecting that option adds this line to /etc/fstab

none /tmp tmpfs defaults 0 0

Wich btw is the only sane way to do it...

If you would have an initscript doing it at boot, it would slow down the
boot _way_ too much...

--
Thomas


Re: [Cooker] Re: cleaning /tmp on boot

by Steve Morris-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 05/07/09 07:38, Thomas Backlund wrote:

> Frank Griffin skrev:
>> Tomasz Chmielewski wrote:
>>> Götz Waschk wrote:
>>>> check /etc/init.d/mandrake_everytime. If CLEAN_TMP is set in
>>>> /etc/sysconfig/system, this init script cleans /tmp, except for the
>>>> files that must stay there.
>>>>
>>>>> I ask because I want to enable this on a RHEL machine.
>>>> Then you'll have to port this, shouldn't be too hard.
>>> Or, just mount /tmp as a tmpfs filesystem.
>>>
>>
>> Interesting.  Every MDV cooker system I've built for years has had this
>> option checked, and in every one of them /tmp *is* a tmpfs
>> filesystem. Several months ago in this ML (or maybe it was on a bug),
>> somebody asked
>> what the checkbox did, and I replied that it made /tmp a tmpfs.  Fred
>> said I was wrong.  Now, I like the fact that it *is* a tmpfs, but if
>> checking the "clean" box during the install isn't adding that line to
>> /etc/fstab, then what is ?  I'm not doing it myself.
>
>
> Well, in that case Fred is wrong!
>
> Selecting that option adds this line to /etc/fstab
>
> none /tmp tmpfs defaults 0 0
>
> Wich btw is the only sane way to do it...
>
> If you would have an initscript doing it at boot, it would slow down
> the boot _way_ too much...
>
> --
> Thomas
>
Related to this when /tmp is mounted as tmpfs what is specifying the
partition size it is mounted with and how is this changed, to verify
whether or not this size is causing ntfs-3g to not be able to
create/write its temporary files at boot time in both cooker and 2009.1?

regards,
Steve


[samorris.vcf]

begin:vcard
fn:Steve Morris
n:Morris;Steve
email;internet:samorris@...
x-mozilla-html:TRUE
version:2.1
end:vcard