Force systemd montando algumas partições antes de qualquer coisa

1

Eu tenho esse problema com o systemd quando eu tenho algumas unidades links simbólicos para alguns locais em alguns sistemas de arquivos desmontados:

Um post sobre isso está lá: Arquivos unitários vinculados do Systemd no disco montado não são carregados

The problem is that the files in /etc/systemd are symlinks and so when systemd starts up it tries to read and parse them before any filesystem is mounted; because the filesystem isn't mounted the symlink doesn't refer to a valid file and so the service isn't loaded. I'd love to know an answer to this 'cos I have units I'd like to be loaded from an NFS server and suffer the same problem; to date I've had to copy the unit to the root partition and enable that :-(

Eu poderia resolvê-lo copiando todos os destinos de links simbólicos para / etc / systemd, mas eu preferiria outra solução. Eu tentei para uma unidade de destino que iria iniciar todas as unidades, dependendo da montagem do sistema de arquivos

[Unit]                                                                                                                                                                                                                                    
Description=Unit that starts all units depending on /home mount                                                                                                                                                                           
After=home.mount                                                                                                                                                                                                                          
Requires=home.mount                                                                                                                                                                                                                       
Before=some_other_unit.service  

mas não funciona (quando inicio manualmente este alvo após a reinicialização, som_other_unit não é carregado. Algumas sugestões?

    
por rem 19.10.2017 / 18:09

0 respostas

Tags