Ensure PS1 is enforced for root
diff --git a/README.rst b/README.rst
index f5146e6..32a9b2c 100644
--- a/README.rst
+++ b/README.rst
@@ -234,7 +234,7 @@
On Debian systems to set prompt system-wide it's necessary to remove setting
PS1 in ``/etc/bash.bashrc`` and ``~/.bashrc`` (which comes from
``/etc/skel/.bashrc``). This formula will do this automatically, but will not
-touch existing user's ``~/.bashrc`` files.
+touch existing user's ``~/.bashrc`` files except root.
Linux network
-------------
diff --git a/linux/system/init.sls b/linux/system/init.sls
index bfaf460..943c1d0 100644
--- a/linux/system/init.sls
+++ b/linux/system/init.sls
@@ -15,6 +15,9 @@
{%- if system.locale is defined %}
- linux.system.locale
{%- endif %}
+{%- if system.prompt is defined %}
+- linux.system.prompt
+{%- endif %}
{%- if system.user|length > 0 %}
- linux.system.user
{%- endif %}
@@ -45,6 +48,3 @@
{%- if system.limit|length > 0 %}
- linux.system.limit
{%- endif %}
-{%- if system.prompt is defined %}
-- linux.system.prompt
-{%- endif %}
diff --git a/linux/system/prompt.sls b/linux/system/prompt.sls
index eba96d7..a3916bb 100644
--- a/linux/system/prompt.sls
+++ b/linux/system/prompt.sls
@@ -16,4 +16,9 @@
- pattern: ".*PS1=.*"
- repl: "# Prompt is set by /etc/profile.d/prompt.sh"
+/root/.bashrc:
+ file.replace:
+ - pattern: ".*PS1=.*"
+ - repl: "# Prompt is set by /etc/profile.d/prompt.sh"
+
{%- endif %}