core: 修复新系统没有 /usr/lib/systemd/system-preset 文件夹时报错

This commit is contained in:
bin456789
2025-03-05 22:34:59 +08:00
parent 8b60b7d2df
commit efb1614b6b
2 changed files with 8 additions and 1 deletions

View File

@ -22,6 +22,7 @@ ExecStart=/usr/bin/env bash /fix-eth-name.sh
ExecStart=/usr/bin/env rm -f /fix-eth-name.sh
ExecStart=/usr/bin/env rm -f /etc/systemd/system/fix-eth-name.service
ExecStart=/usr/bin/env rm -f /etc/systemd/system/multi-user.target.wants/fix-eth-name.service
ExecStart=/usr/bin/env rm -f /lib/systemd/system-preset/01-fix-eth-name.preset
ExecStart=/usr/bin/env rm -f /usr/lib/systemd/system-preset/01-fix-eth-name.preset
[Install]