【发布时间】:2020-04-25 19:39:15
【问题描述】:
我正在使用 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安装失败
我怀疑 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依赖,但它不起作用。
【问题讨论】:
标签: deb debian-based