mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
fix(install): use /usr/sbin as install path and fix systemd dependency (#245)
This commit is contained in:
parent
d1b2cb3683
commit
1126f1ffc9
4
hack/dist/systar.sh
vendored
4
hack/dist/systar.sh
vendored
@ -22,9 +22,9 @@ tar xf "${OUTPUT_DIR}/bundle-systemd-${TARGET_ARCH}.tgz"
|
||||
mkdir sys
|
||||
cd sys
|
||||
|
||||
mkdir -p usr/bin usr/libexec
|
||||
mkdir -p usr/bin usr/sbin
|
||||
mv ../krata/kratactl usr/bin
|
||||
mv ../krata/kratanet ../krata/kratad usr/libexec/
|
||||
mv ../krata/kratanet ../krata/kratad usr/sbin/
|
||||
|
||||
if [ "${SYSTAR_VARIANT}" = "openrc" ]
|
||||
then
|
||||
|
@ -23,11 +23,11 @@ remove_service_if_exists kratanet.service
|
||||
cp kratad.service /usr/lib/systemd/system/kratad.service
|
||||
cp kratanet.service /usr/lib/systemd/system/kratanet.service
|
||||
|
||||
cp kratad kratanet /usr/libexec
|
||||
cp kratad kratanet /usr/sbin
|
||||
cp kratactl /usr/bin
|
||||
|
||||
chmod +x /usr/libexec/kratad
|
||||
chmod +x /usr/libexec/kratanet
|
||||
chmod +x /usr/sbin/kratad
|
||||
chmod +x /usr/sbin/kratanet
|
||||
chmod +x /usr/bin/kratactl
|
||||
|
||||
mkdir -p /var/lib/krata /usr/share/krata/guest
|
||||
|
@ -8,5 +8,5 @@ rm -f /usr/lib/systemd/system/kratad.service
|
||||
rm -f /usr/lib/systemd/system/kratanet.service
|
||||
|
||||
rm -f /usr/bin/kratactl
|
||||
rm -f /usr/libexec/kratad /usr/libexec/kratanet
|
||||
rm -f /usr/sbin/kratad /usr/sbin/kratanet
|
||||
rm -rf /usr/share/krata
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/sbin/openrc-run
|
||||
description="Krata Isolation Engine"
|
||||
command="/usr/libexec/kratad"
|
||||
command="/usr/sbin/kratad"
|
||||
supervisor="supervise-daemon"
|
||||
output_log="/var/log/kratad.log"
|
||||
error_log="/var/log/kratad.err"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/sbin/openrc-run
|
||||
description="Krata Networking Daemon"
|
||||
command="/usr/libexec/kratanet"
|
||||
command="/usr/sbin/kratanet"
|
||||
supervisor="supervise-daemon"
|
||||
output_log="/var/log/kratanet.log"
|
||||
error_log="/var/log/kratanet.err"
|
||||
|
@ -1,9 +1,9 @@
|
||||
[Unit]
|
||||
Description=Krata Networking Engine
|
||||
|
||||
[Service]
|
||||
Wants=kratad.service
|
||||
After=kratad.service
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/kratanet
|
||||
|
Loading…
Reference in New Issue
Block a user