On 2/24/06, J. Hartline <jasperhartline@adelphia.net> wrote:
Essien Essien wrote:

>
>
>     The attached patch checks for firstboot and if its _not_ installed
>     disables it from running, hence eliminating the [FAIL] boottime
>     message that will occur otherwise.
>
> def tweak_firstboot_config (rootdir):
>       shf = sysconfig_file (rootdir, "firstboot")
>-      shf["RUN_FIRSTBOOT"] = "YES"
>+      if os.path.exists('/usr/sbin/'):
>+              shf["RUN_FIRSTBOOT"] = "YES"
>+      else:
>+              shf["RUN_FIRSTBOOT"] = "NO"
>       shf.write ()
>
>
>
Whether /usr/sbin exists or not, doesn't play any part if firstboot was
installed, or am I overlooking something?

my bad. corrected patch attached. that should be /usr/sbin/firstboot.