summarylogtreecommitdiffstats
path: root/lvm2_hook
diff options
context:
space:
mode:
authorPlaton Ryzhikov2021-06-03 17:07:33 +0300
committerPlaton Ryzhikov2021-06-03 17:07:33 +0300
commit38d65b68db61db3852c9a23372fe3a71ff455c42 (patch)
tree1dbff31a802e184bddcc2e9dbbd49b70546c7328 /lvm2_hook
parent8b60c0018f408d675f180dbb2a16ac4d99d1f75e (diff)
downloadaur-38d65b68db61db3852c9a23372fe3a71ff455c42.tar.gz
update to 2.03.12-1
Diffstat (limited to 'lvm2_hook')
-rw-r--r--lvm2_hook29
1 files changed, 0 insertions, 29 deletions
diff --git a/lvm2_hook b/lvm2_hook
deleted file mode 100644
index 1786fb585f81..000000000000
--- a/lvm2_hook
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/ash
-
-run_earlyhook() {
- mkdir /run/lvm
- lvmetad
-}
-
-run_hook() {
- lvm vgchange -a y
-}
-
-# We are suffering a race condition in non-systemd initramfs: If lvmetad is
-# killed before pvscan processes finish we have stale processes and
-# uninitialized physical volumes. So wait for pvscan processes to finish.
-# Break after 10 seconds (50*0.2s) to avaid infinite loop.
-run_latehook() {
- local i=50
-
- while pgrep -f pvscan >/dev/null 2>/dev/null && [ $i -gt 0 ]; do
- sleep 0.2
- i=$((i - 1))
- done
-}
-
-run_cleanuphook() {
- kill $(cat /run/lvmetad.pid)
-}
-
-# vim: set ft=sh ts=4 sw=4 et: