mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-30 07:35:17 +02:00
15 lines
365 B
Bash
Executable file
15 lines
365 B
Bash
Executable file
#!/bin/sh
|
|
exec 2>&1
|
|
|
|
# Make sure the portmap service is running.
|
|
sv check rpcbind >/dev/null || exit 1
|
|
|
|
# Check/mount rpc_pipefs (loads sunrpc kernel module)
|
|
if ! mountpoint -q /var/lib/nfs/rpc_pipefs; then
|
|
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs -o defaults || exit 1
|
|
fi
|
|
|
|
# Load blkmapd module
|
|
modprobe blocklayoutdriver || exit 1
|
|
|
|
exec blkmapd -f
|