summaryrefslogtreecommitdiffstats
path: root/modules.d/50plymouth/plymouth-newroot.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmodules.d/50plymouth/plymouth-newroot.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules.d/50plymouth/plymouth-newroot.sh b/modules.d/50plymouth/plymouth-newroot.sh
new file mode 100755
index 0000000..944f2dc
--- /dev/null
+++ b/modules.d/50plymouth/plymouth-newroot.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if type plymouth > /dev/null 2>&1 && [ -z "$DRACUT_SYSTEMD" ]; then
+ plymouth --newroot="$NEWROOT"
+fi