diff options
author | davidovski <david@davidovski.xyz> | 2022-05-22 17:47:09 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-22 17:47:09 +0100 |
commit | 79062a39e9bcb9731adbacd0bd9bcd0b59d19d0a (patch) | |
tree | f67d3b58f0c4387e7248967c491442afcee0cd06 /repo/util/llvm2/lvm.initd | |
parent | 2f6c333a5bcef47d9fee59f180fa827cb24290d4 (diff) |
fixes to allow for full build
Diffstat (limited to 'repo/util/llvm2/lvm.initd')
-rw-r--r-- | repo/util/llvm2/lvm.initd | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/repo/util/llvm2/lvm.initd b/repo/util/llvm2/lvm.initd deleted file mode 100644 index db6adbe..0000000 --- a/repo/util/llvm2/lvm.initd +++ /dev/null @@ -1,38 +0,0 @@ -#!/sbin/openrc-run - -depend() { - before checkfs fsck swap - after hwdrivers modules device-mapper -} - -dm_in_proc() { - local rc=0 i= - for i in devices misc; do - grep -qs 'device-mapper' /proc/$i - rc=$(($rc + $?)) - done - return $rc -} - -start() { - local rc=0 msg= - ebegin "Setting up the Logical Volume Manager" - if [ -e /proc/modules ] && ! dm_in_proc; then - modprobe dm-mod 2>/dev/null - fi - if [ -d /proc/lvm ] || dm_in_proc; then - vgscan --mknodes --ignorelockingfailure >/dev/null 2>&1 - vgchange --sysinit --activate y >/dev/null 2>&1 - rc=$? - else - rc=1 - fi - eend $rc -} - -stop() { - ebegin "Shutting down the Logical Volume Manager" - vgchange --ignorelockingfailure -a n >/dev/null 2>&1 - eend $? -} - |