Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: src/scripts/mod_for_factory_scripts/factory.patch

Issue 1542011: Allow boot directly into mfg test. (Closed)
Patch Set: check that CL is attached to tracker Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scripts/image_to_usb.sh ('k') | src/scripts/mod_image_for_test.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/mod_for_factory_scripts/factory.patch
diff --git a/src/scripts/mod_for_factory_scripts/factory.patch b/src/scripts/mod_for_factory_scripts/factory.patch
new file mode 100644
index 0000000000000000000000000000000000000000..79784175727ecca671f248f60af198dc1b3befa8
--- /dev/null
+++ b/src/scripts/mod_for_factory_scripts/factory.patch
@@ -0,0 +1,88 @@
+diff -Naur old/etc/init/dump-boot-stats.conf new/etc/init/dump-boot-stats.conf
+--- old/etc/init/dump-boot-stats.conf 2010-04-05 21:33:11.000000000 -0700
++++ new/etc/init/dump-boot-stats.conf 2010-04-05 21:00:48.000000000 -0700
+@@ -7,7 +7,7 @@
+ # when login-prompt-ready is received, grabs the current uptime and
+ # disk stats. Also sends uptime to metrics client for perf dashboard
+
+-start on login-prompt-ready
++start on stopping startup
+
+ # This is run-once rather than a service.
+ task
+diff -Naur old/etc/init/factory.conf new/etc/init/factory.conf
+--- old/etc/init/factory.conf 1969-12-31 16:00:00.000000000 -0800
++++ new/etc/init/factory.conf 2010-04-05 20:59:07.000000000 -0700
+@@ -0,0 +1,17 @@
++
++description "Chrome OS factory startup stub"
++author "chromium-os-dev@googlegroups.com"
++
++start on stopping autotest
++
++script
++
++cd /usr/local/autotest
++if [ ! -e factory_started ]; then
++ touch factory_started
++ date >> /var/log/factory.log
++ cp -f site_tests/suite_Factory/control.full control
++ ./bin/autotest control >> /var/log/factory.log 2>&1
++fi
++end script
++
+diff -Naur old/etc/init/autotest.conf new/etc/init/autotest.conf
+--- old/etc/init/autotest.conf 1969-12-31 16:00:00.000000000 -0800
++++ new/etc/init/autotest.conf 2010-04-05 20:59:07.000000000 -0700
+@@ -0,0 +1,15 @@
++
++description "Chrome OS autotest startup stub"
++author "chromium-os-dev@googlegroups.com"
++
++start on started udev
++
++script
++# Sleep as the current upstart sequence gives no clear completion signal.
++# TODO: investigate generating authoritative bootup finished event.
++sleep 10
++cd /usr/local/autotest
++date >> /var/log/factory.log
++./tools/autotest >> /var/log/factory.log 2>&1
++end script
++
+diff -Naur old/etc/init/tty1.conf new/etc/init/tty1.conf
+--- old/etc/init/tty1.conf 1969-12-31 16:00:00.000000000 -0800
++++ new/etc/init/tty1.conf 2010-04-05 20:59:07.000000000 -0700
+@@ -0,0 +1,9 @@
++start on startup
++stop on starting halt or starting reboot
++
++respawn
++script
++cd /
++/sbin/agetty 38400 tty1 linux -l /bin/bash -n
++end script
++
+diff -Naur old/sbin/chromeos_startup new/sbin/chromeos_startup
+--- old/sbin/chromeos_startup 2010-04-05 21:33:52.000000000 -0700
++++ new/sbin/chromeos_startup 2010-04-05 21:38:02.000000000 -0700
+@@ -20,18 +20,12 @@
+
+ # Moblin trick: Disable blinking cursor. Without this a splash screen
+ # will show a distinct cursor shape even when the cursor is set to none.
+-echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink
++# echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink
+
+ # Since we defer udev until later in the boot process, we pre-populate /dev
+ # with the set of devices needed for X and other early services to run.
+ cp -a -f /lib/chromiumos/devices/* /dev
+
+-# Splash screen!
+-if [ -x /usr/bin/ply-image ]
+-then
+- /usr/bin/ply-image /usr/share/chromeos-assets/images/login_splash.png &
+-fi
+-
+ mount -n -t tmpfs tmp /tmp
+ mount -n -t tmpfs -onosuid,nodev shmfs /dev/shm
+ mount -n -t devpts -onoexec,nosuid,gid=5,mode=0620 devpts /dev/pts
« no previous file with comments | « src/scripts/image_to_usb.sh ('k') | src/scripts/mod_image_for_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698