Bind it to sysroot

This commit is contained in:
Ettore Di Giacinto 2022-11-23 09:59:55 +00:00 committed by Ettore Di Giacinto
parent 7f397a3459
commit 214ae51333
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ neednet="rd.neednet"
echo "DefaultDependencies=no"
echo "Description=kcrypt online mount"
echo "Before=cos-immutable-rootfs.service"
echo "Conflicts=initrd-switch-root.target"
if getargbool 0 $neednet; then
echo "Wants=network-online.target"
echo "After=network-online.target"
@ -24,6 +25,7 @@ neednet="rd.neednet"
if [ -n "${oem_label}" ]; then
echo "After=oem.mount"
fi
echo "After=sysroot.mount"
echo "[Service]"
echo "Type=oneshot"
echo "RemainAfterExit=no"

View File

@ -28,7 +28,7 @@ type Bus struct {
func (b *Bus) LoadProviders() {
wd, _ := os.Getwd()
b.Manager.Autoload("kcrypt-discovery", "/system/discovery", "/oem/kcrypt", "/oem/system/discovery", wd).Register()
b.Manager.Autoload("kcrypt-discovery", "/sysroot/system/discovery", "/system/discovery", "/oem/kcrypt", "/oem/system/discovery", wd).Register()
}
func (b *Bus) Initialize() {