Tags:
create new tag
view all tags

Booting context

There is a "booting" context which is set during the boot process, until logins are enabled.

This can be used for any resource. It is important to note that due to the way contexts work this will only be applied to resources for components which are started AFTER the lcfg client component.

One useful use for this context is to signal that a particular RPM should be deleted, but only at boot time and not during the nightly run of updaterpms. For example, if you wish the package kile to be removed you would set the following resources :-


!profile.packages mEXTRA(-kile-*-*)
!profile.packages mEXTRA(+kile-*-*:i[!booting])

Implementation

SL6 - The context is set by /usr/sbin/lcfginit (call of 'context booting=true') and cleared by a call of 'context booting=' in /etc/init/rc.conf

SL7 - The context is set by /usr/sbin/lcfginit (call to 'context') and cleared by the lcfg-clearbootctx.service

-- AlastairScobie - 08 Dec 2006

Topic revision: r4 - 2015-12-03 - squinney
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback