summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-07-19 04:10:30 +0300
committerDevaev Maxim <[email protected]>2019-07-19 04:10:30 +0300
commitefbedb222df3b213d8e3106ee211830602ce5720 (patch)
treeb1e67cef60ac7b46e8c6507671dff31bb2045357 /PKGBUILD
parentad83678eb3f735806f87ad9a43c32bdd6ffb92aa (diff)
using sysusers.d
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b64854bf..101b90f5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -65,6 +65,9 @@ package_kvmd() {
mkdir -p "$pkgdir/usr/lib/systemd/system"
cp configs/os/systemd/*.service "$pkgdir/usr/lib/systemd/system"
+ mkdir -p "$pkgdir/usr/lib/sysusers.d"
+ cp configs/os/sysusers.conf "$pkgdir/usr/lib/sysusers.d/kvmd.conf"
+
mkdir -p "$pkgdir/usr/lib/tmpfiles.d"
cp configs/os/tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/kvmd.conf"
@@ -106,9 +109,9 @@ for _platform in $PIKVM_PLATFORM; do
local _cfg_default=\"/usr/share/kvmd/configs.default\"
- ln -sf \"\$_cfg_default/os/sysctl.conf\" \"\$pkgdir/etc/sysctl.d/99-pikvm.conf\"
- ln -sf \"\$_cfg_default/os/udev/$_platform-$_board.rules\" \"\$pkgdir/etc/udev/rules.d/99-pikvm.rules\"
- ln -sf \"\$_cfg_default/os/modules-load/$_platform.conf\" \"\$pkgdir/etc/modules-load.d/pikvm.conf\"
+ ln -sf \"\$_cfg_default/os/sysctl.conf\" \"\$pkgdir/etc/sysctl.d/99-kvmd.conf\"
+ ln -sf \"\$_cfg_default/os/udev/$_platform-$_board.rules\" \"\$pkgdir/etc/udev/rules.d/99-kvmd.rules\"
+ ln -sf \"\$_cfg_default/os/modules-load/$_platform.conf\" \"\$pkgdir/etc/modules-load.d/kvmd.conf\"
ln -sf \"\$_cfg_default/kvmd/main/$_platform.yaml\" \"\$pkgdir/etc/kvmd/main.yaml\"
if [ $_platform == v1-hdmi ]; then