Commit d0423c58 authored by Anton Midyukov's avatar Anton Midyukov

live: fix 60-live-rescue-root for works on p10

Fixing the launch command. We remove Type=simple so that the Type=idle, that is, wait for the bootload to complete. Now you can turn on the network, since the login will not be lost in messages.
parent 85576e33
...@@ -18,18 +18,16 @@ ls -l /sbin/init |grep -q systemd || exit 0 ...@@ -18,18 +18,16 @@ ls -l /sbin/init |grep -q systemd || exit 0
mkdir -p /etc/systemd/system/getty@.service.d mkdir -p /etc/systemd/system/getty@.service.d
cat>>/etc/systemd/system/getty@.service.d/live-rescue.conf<<'EOF' cat>>/etc/systemd/system/getty@.service.d/live-rescue.conf<<'EOF'
[Service] [Service]
Type=simple
ExecStart= ExecStart=
ExecStart=-agetty -a root --noclear - $TERM ExecStart=-agetty -o '-p -f -- \\u' --noclear --autologin root %I $TERM
EOF EOF
# Autologin root to serial tty's # Autologin root to serial tty's
mkdir -p /etc/systemd/system/serial-getty@.service.d mkdir -p /etc/systemd/system/serial-getty@.service.d
cat>>/etc/systemd/system/serial-getty@.service.d/live-rescue.conf<<'EOF' cat>>/etc/systemd/system/serial-getty@.service.d/live-rescue.conf<<'EOF'
[Service] [Service]
Type=simple
ExecStart= ExecStart=
ExecStart=-agetty -a root --noclear --keep-baud 115200,57600,38400,9600 - $TERM ExecStart=-agetty -o '-p -f -- \\u' --keep-baud 115200,57600,38400,9600 --autologin root %I $TERM
EOF EOF
mkdir -p /etc/systemd/system/live-rescue.target.d mkdir -p /etc/systemd/system/live-rescue.target.d
...@@ -37,7 +35,7 @@ cat>>/etc/systemd/system/live-rescue.target<<'EOF' ...@@ -37,7 +35,7 @@ cat>>/etc/systemd/system/live-rescue.target<<'EOF'
[Unit] [Unit]
Description=Live Rescue System Description=Live Rescue System
Documentation=man:systemd.special(7) Documentation=man:systemd.special(7)
Requires=basic.target network.target getty.target Requires=basic.target network-online.target getty.target
Conflicts=rescue.service rescue.target multi-user.target Conflicts=rescue.service rescue.target multi-user.target
Conflicts=altlinux-first_time.service vconsole-setup-kludge@tty1.service Conflicts=altlinux-first_time.service vconsole-setup-kludge@tty1.service
Before=altlinux-first_time.service vconsole-setup-kludge@.service Before=altlinux-first_time.service vconsole-setup-kludge@.service
......
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