Add a shell wrapper for console-conf
This is Steve's idea for reducing the RAM used at rest.
This commit is contained in:
parent
69ab3ef696
commit
acbaa05eb7
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo -n 'Press enter to configure: '
|
||||
read REPLY
|
||||
exec console-conf "$@"
|
|
@ -11,7 +11,7 @@ ConditionPathExists=!/var/lib/console-conf/complete
|
|||
[Service]
|
||||
Environment=PYTHONPATH=/usr/share/subiquity
|
||||
ExecStartPre=/bin/systemctl stop getty@%I
|
||||
ExecStart=-/sbin/agetty -n --noclear -l /usr/bin/console-conf %I $TERM
|
||||
ExecStart=-/sbin/agetty -n --noclear -l /usr/bin/console-conf-wrapper %I $TERM
|
||||
ExecStop=/bin/systemctl start getty@%I
|
||||
#ExecStopPost=/bin/echo "Post stop, starting getty@%I"
|
||||
#ExecStopPost=/bin/systemctl start getty@%I
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
bin/console-conf-tui usr/share/subiquity
|
||||
bin/console-conf-wrapper usr/share/subiquity
|
||||
usr/share/subiquity/console_conf
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
/usr/share/subiquity/console-conf-tui /usr/bin/console-conf
|
||||
/usr/share/subiquity/console-conf-wrapper /usr/bin/console-conf-wrapper
|
||||
|
|
|
@ -8,7 +8,7 @@ ConditionPathExists=!/var/lib/console-conf/complete
|
|||
[Service]
|
||||
Environment=PYTHONPATH=/usr/share/subiquity
|
||||
ExecStartPre=/bin/systemctl stop serial-getty@%I
|
||||
ExecStart=-/sbin/agetty -n --noclear -l /usr/bin/console-conf %I $TERM
|
||||
ExecStart=-/sbin/agetty -n --noclear -l /usr/bin/console-conf-wrapper %I $TERM
|
||||
ExecStop=/bin/systemctl start serial-getty@%I
|
||||
Type=idle
|
||||
Restart=always
|
||||
|
|
Loading…
Reference in New Issue