在Debian安装上安装systemd服务

时间:2020-01-08 09:31:52

标签: deb debian-based

我正在使用simple-cdd实用程序构建自定义的Debian ISO。直到我附加了自己的.deb软件包的那一刻,它都运行良好。

build-simple-cdd --dist stretch --profiles moj --force-root --local-packages /root/iso/deb

build-simple-cdd可以正常工作,因为我在tmp目录结构中看到了我的deb包,并且成功创建了iso映像。但是debian安装失败enter image description here

我怀疑postinst脚本失败了,因为它在可能不可用时会使用systemctl命令。

#!/bin/sh
set -e

echo $1
if [ "$1" = "configure" ]; then 
    echo "Configuring privileges..."
    chown user:user /usr/bin/Koncentrator
    chmod 0755 /usr/bin/Koncentrator

    echo "Enabling Koncentrator services..." 
    systemctl daemon-reload
    systemctl enable Xvfb.service
    systemctl enable Koncentrator.service
fi

我已经将systemd依赖项添加到控制文件中,但是它不起作用。

0 个答案:

没有答案
相关问题