When using puppet during kickstart in a chroot environment runlevel returns unknown

Solution Verified - Updated -

Issue

In RHEL6U2 kickstart chroot environment, /sbin/runlevel command always returns 'unknown' (/var/run/utmp is 0 bytes in chroot), which is causing a problem with puppet runs when puppet tries to manage all kinds of redhat services.

If we replace /sbin/runlevel with a shell script "echo N 3" or replace /var/run/utmp file from an up and running RHEL6 server, to make runlevel command happy, then things are fine.

Is this a known issue / bug?

Environment

Red Hat Enterprise Linux
All RHEL environments work this way, but this was validated on RHEL6 environment

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.