mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
crosutils/mod_for_factory_scripts: don't change VT on factory service stop
In http://codereview.chromium.org/6567004 in order to help developers stopping factory UI, we've added an "chvt 2". However changing foreground terminal may hang when executing "shutdown -r" inside Wipe test. Removing the "chvt" call solved this issue. The only side effect is that developers executing "initctl stop factory" may end seeing a black scren - and they need to hit Ctrl-Alt-F2 to get the console back. BUG=chrome-os-partner:2631 TEST=build a factory image then verified following steps: (1) in VT2, do "initctl stop factory, then C-A-F2: screen changed to VT2. (2) Execute factory tests until Wipe: reboots immediately when X closed (3) Execute Reboot in HWID test: reboots immediately when 'reboot' is ACTIVE Change-Id: Ib6f44a6ad07db08862929179d0fe21cbbcc2b22a Review URL: http://codereview.chromium.org/6621041
This commit is contained in:
parent
4ed0b8680a
commit
c750ac2c4d
@ -53,10 +53,6 @@ pre-stop script
|
||||
pkill python
|
||||
pkill X
|
||||
end script
|
||||
|
||||
post-stop script
|
||||
chvt 2
|
||||
end script
|
||||
EOF
|
||||
|
||||
cat >"${ROOT_FS_DIR}/etc/init/factorylog.conf" <<EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user