parent
05d123b27f
commit
498bc9aa2b
@ -1 +0,0 @@
|
||||
network: {config: disabled}
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/bin/systemctl enable casper
|
@ -1,43 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Author: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
|
||||
# Tollef Fog Heen <tfheen@canonical.com>
|
||||
# Marco Amadori <marco.amadori@gmail.com>
|
||||
#
|
||||
|
||||
PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
do_stop ()
|
||||
{
|
||||
prompt=1
|
||||
if grep -qs noprompt /proc/cmdline || [ -e /run/casper-no-prompt ]; then
|
||||
prompt=
|
||||
fi
|
||||
|
||||
# XXX - i18n
|
||||
MSG="Please press ENTER then remove the installation medium: "
|
||||
MSG_FALLBACK="Please remove the installation medium, then reboot."
|
||||
|
||||
if [ "$prompt" ]; then
|
||||
if [ -x /bin/plymouth ] && plymouth --ping; then
|
||||
chvt 63
|
||||
plymouth message --text="$MSG"
|
||||
clear > /dev/tty1
|
||||
echo $MSG_FALLBACK > /dev/tty1
|
||||
else
|
||||
stty sane < /dev/console
|
||||
echo $MSG > /dev/console
|
||||
fi
|
||||
fi
|
||||
|
||||
[ "$prompt" ] || return 0
|
||||
|
||||
if [ -x /bin/plymouth ] && plymouth --ping; then
|
||||
plymouth watch-keystroke > /dev/null
|
||||
else
|
||||
read x < /dev/console
|
||||
fi
|
||||
}
|
||||
|
||||
do_stop
|
||||
|
@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=Shuts down the "live" preinstalled system cleanly
|
||||
DefaultDependencies=no
|
||||
Before=final.target
|
||||
After=shutdown.target umount.target plymouth-halt.service plymouth-poweroff.service plymouth-reboot.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/sbin/casper-stop
|
||||
StandardInput=tty-force
|
||||
StandardOutput=inherit
|
||||
StandardError=inherit
|
||||
TTYReset=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=final.target
|
Loading…
Reference in new issue