summaryrefslogtreecommitdiffstats
path: root/contrib/Kali_Linux_Raspberry_armhf/haveged-switch-root.service
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/Kali_Linux_Raspberry_armhf/haveged-switch-root.service')
-rw-r--r--contrib/Kali_Linux_Raspberry_armhf/haveged-switch-root.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/Kali_Linux_Raspberry_armhf/haveged-switch-root.service b/contrib/Kali_Linux_Raspberry_armhf/haveged-switch-root.service
new file mode 100644
index 0000000..a3eb086
--- /dev/null
+++ b/contrib/Kali_Linux_Raspberry_armhf/haveged-switch-root.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Tell haveged about new root
+DefaultDependencies=no
+ConditionKernelVersion=<5.6
+ConditionPathExists=/etc/initrd-release
+Before=initrd-switch-root.service
+JoinsNamespaceOf=haveged.service
+
+[Service]
+ExecStart=-@SBIN_DIR@/haveged -c root=/sysroot
+PrivateNetwork=yes
+Type=oneshot
+StandardInput=null
+StandardOutput=null
+StandardError=null
+
+[Install]
+WantedBy=initrd-switch-root.target