mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
cros mod_image_for_factory: don't enable update engine for factory test images
To get best factory test image performance, we should disable update engine. BUG=chromium-os:13613 TEST=image_to_usb --factory --to=FACTORY then verified /etc/init/update-engine.conf is disabled. Change-Id: Ifb7b6c821f434ee68625ffea0eb7907c38d77315 R=nsanders@chromium.org Review URL: http://codereview.chromium.org/6759023
This commit is contained in:
parent
8b8c76b617
commit
9cac2869c7
@ -25,6 +25,17 @@ diff -Naur old/etc/init/boot-complete.conf new/etc/init/boot-complete.conf
|
||||
+start on started udev
|
||||
EOF
|
||||
|
||||
if [ -r "${ROOT_FS_DIR}/etc/init/update-engine.conf" ]; then
|
||||
patch -d "${ROOT_FS_DIR}" -Np1 <<EOF
|
||||
diff -Na -U 0 old/etc/init/update-engine.conf new/etc/init/
|
||||
--- old/etc/init/update-engine.conf 2010-08-05 16:32:55.000000000 -0700
|
||||
+++ new/etc/init/update-engine.conf 2010-08-05 16:32:45.000000000 -0700
|
||||
@@ -8 +8 @@
|
||||
-start on starting system-services and started dbus
|
||||
+start on never
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ -r "${ROOT_FS_DIR}/etc/init/chrontel.conf" ]; then
|
||||
patch -d "${ROOT_FS_DIR}" -Np1 <<EOF
|
||||
diff -Nau old/etc/init/chrontel.conf new/etc/init/
|
||||
|
Loading…
x
Reference in New Issue
Block a user