Commit 211060c4 authored by Roman Alifanov's avatar Roman Alifanov

use installer-feature-alterator-setup-stage2

parent c38c24f7
...@@ -15,5 +15,6 @@ install_common: ...@@ -15,5 +15,6 @@ install_common:
install -p -Dm 0755 ready-set-service $(DESTDIR)$(PREFIX)/bin/ready-set-service install -p -Dm 0755 ready-set-service $(DESTDIR)$(PREFIX)/bin/ready-set-service
install -p -Dm 0755 ready-set-service.service $(DESTDIR)$(UNITDIR)/ready-set-service.service install -p -Dm 0755 ready-set-service.service $(DESTDIR)$(UNITDIR)/ready-set-service.service
install -p -Dm 0755 setup.target $(DESTDIR)$(UNITDIR)/setup.target
install -p -Dm 0755 ready-set-start.sh $(DESTDIR)$(DATADIR)/ready-set-service/ready-set-start.sh install -p -Dm 0755 ready-set-start.sh $(DESTDIR)$(DATADIR)/ready-set-service/ready-set-start.sh
...@@ -11,13 +11,4 @@ cage /usr/share/ready-set-service/ready-set-start.sh && ...@@ -11,13 +11,4 @@ cage /usr/share/ready-set-service/ready-set-start.sh &&
rm -rf /run/user/0/ rm -rf /run/user/0/
dm_list=("gdm" "sddm" "lightdm" "greetd" "ly") reboot
for dm in "${dm_list[@]}"; do
if systemctl list-unit-files | grep -q "^$dm.service"; then
echo "Enabling and starting display manager: $dm"
systemctl disable ready-set-service
systemctl enable --now "$dm"
break
fi
done
\ No newline at end of file
[Unit] [Unit]
Description=OEM Setup test Description=Perform OEM Setup
After=graphical.target Conflicts=getty@tty1.service
Requires=graphical.target After=multi-user.target
Requires=multi-user.target
[Service] [Service]
TTYPath=/dev/tty1 Type=idle
ExecStart=/usr/bin/ready-set-service
Restart=on-failure
StandardInput=tty StandardInput=tty
StandardOutput=journal StandardOutput=journal
ExecStart=/usr/bin/ready-set-service StandardError=journal
RemainAfterExit=yes TTYPath=/dev/tty1
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
User=root
WorkingDirectory=/root
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
[Install] [Install]
WantedBy=graphical.target WantedBy=setup.target
...@@ -12,6 +12,7 @@ BuildArch: noarch ...@@ -12,6 +12,7 @@ BuildArch: noarch
Source: %name-%version.tar Source: %name-%version.tar
Requires: ready-set Requires: ready-set
Conflicts: alterator-setup
%description %description
%summary %summary
...@@ -27,6 +28,7 @@ Requires: ready-set ...@@ -27,6 +28,7 @@ Requires: ready-set
%_datadir/%name %_datadir/%name
%_unitdir/%name.service %_unitdir/%name.service
%_unitdir/setup.target
%changelog %changelog
* Thu May 15 2025 Roman Alifanov <ximper@altlinux.org> 0.0.1-alt1 * Thu May 15 2025 Roman Alifanov <ximper@altlinux.org> 0.0.1-alt1
......
[Unit]
Description=OEM Setup Target
Requires=ready-set-service.service
After=multi-user.target
[Install]
WantedBy=default.target
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