Commit 7fb3297c authored by Anton Midyukov's avatar Anton Midyukov

oem: fix enabled oem.target

the creation of a symlink was broken, since there is a default.target
parent a73683b5
......@@ -4,8 +4,12 @@
TARGET=/lib/systemd/system/$GLOBAL_OEM_TARGET.target
[ ! -s "$TARGET" ] ||
if [ -s "$TARGET" ]; then
[ -s /etc/systemd/system/default.target ] &&
mv /etc/systemd/system/default.target{,.bak} ||
rm -f /etc/systemd/system/default.target
ln -s "$TARGET" /etc/systemd/system/default.target
fi
# Disable cleanup alterator-setup
[ ! "$GLOBAL_OEM_NO_CLEANUP" = yes ] ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment