Commit 79775b36 authored by Anton Midyukov's avatar Anton Midyukov

oem: add systemd.unit=setup.target to kernel cmdline

If alterator-setup >= 4.0 it only runs when it detects 'systemd.unit=setup.target' in /proc/cmdline. If alterator-setup version <= 4.0 there will be a problem in the form of the remaining argument 'systemd.unit=setup.target' in /proc/cmdline.
parent 4c9359a3
......@@ -5,7 +5,7 @@ use/oem: use/services use/branding use/deflogin/root use/l10n
@$(call add,BASE_PACKAGES,rootfs-installer-features)
@$(call add,PINNED_PACKAGES,rootfs-installer-features)
@$(call add,THE_BRANDING,alterator notes)
@$(call try,OEM_TARGET,setup)
@$(call add,BASE_BOOTARGS,systemd.unit=setup.target)
@$(call add,DEFAULT_SERVICES_ENABLE,$$(OEM_TARGET))
@$(call xport,OEM_TARGET)
@$(call xport,OEM_NO_CLEANUP)
......
#!/bin/sh
# this breaks the default configuration on intent
# so that alterator-setup can run predictably
TARGET=/lib/systemd/system/$GLOBAL_OEM_TARGET.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