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

Unified Diff: chromeos-base/chromeos-factoryinstall/chromeos-factoryinstall-0.0.1.ebuild

Issue 1946004: Further updates to factory installer (Closed) Base URL: ssh://git@chromiumos-git/chromiumos-overlay.git
Patch Set: fix tab 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 | « no previous file | chromeos/scripts/customize_rootfs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos-base/chromeos-factoryinstall/chromeos-factoryinstall-0.0.1.ebuild
diff --git a/chromeos-base/chromeos-factoryinstall/chromeos-factoryinstall-0.0.1.ebuild b/chromeos-base/chromeos-factoryinstall/chromeos-factoryinstall-0.0.1.ebuild
index 5e6a4b50809e32b8233d1b64e03c4b3663c8b7fe..98900ca89cd9cef4c5db1a427a69952d5288c698 100644
--- a/chromeos-base/chromeos-factoryinstall/chromeos-factoryinstall-0.0.1.ebuild
+++ b/chromeos-base/chromeos-factoryinstall/chromeos-factoryinstall-0.0.1.ebuild
@@ -18,16 +18,49 @@ RDEPEND="chromeos-base/chromeos-installer
chromeos-base/memento_softwareupdate"
src_unpack() {
- local factory_installer="${CHROMEOS_ROOT}/src/platform/factory_installer"
- elog "Using factory_installer: $factory_installer"
- mkdir "${S}"
- cp -a "${factory_installer}"/* "${S}" || die
+ local factory_installer="${CHROMEOS_ROOT}/src/platform/factory_installer"
+ elog "Using factory_installer: $factory_installer"
+ mkdir "${S}"
+ cp -a "${factory_installer}"/* "${S}" || die
}
src_install() {
insinto /etc/init
doins factory_install.conf
+ doins factory_ui.conf
exeinto /usr/sbin
doexe factory_install.sh
}
+
+pkg_postinst() {
+ # TODO(nsanders): Can this be set in make.conf?
+ : ${FACTORY_SERVER:="meatball.mtv.corp.google.com"}
+
+ sed -i \
+ "s/CHROMEOS_AUSERVER=.*$/CHROMEOS_AUSERVER=\
+http:\/\/${FACTORY_SERVER}:8080\/update/" \
+ ${ROOT}/etc/lsb-release
+
+ # sudo friendly append.
+ cat <<EOF | sudo dd of="${ROOT}/etc/lsb-release" \
+ oflag=append conv=notrunc
+FACTORY_INSTALL=1
+HTTP_SERVER_OVERRIDE=true
+EOF
+
+ # No devserver.
+ sed -i '/CHROMEOS_DEVSERVER=/d' "${ROOT}/etc/lsb-release"
+
+ # Remove ui.conf startup script, which will make sure chrome doesn't
+ # run, since it tries to update on startup
+ sed -i 's/start on stopping startup/start on never/' \
+ "${ROOT}/etc/init/ui.conf"
+ # Set network to start up another way
+ sed -i 's/login-prompt-ready/stopping startup/' \
+ "${ROOT}/etc/init/dump-boot-stats.conf"
+ # Allow text progress for now.
+ sed -i 's/\[ \-x \/usr\/bin\/ply\-image \]/false/' \
+ "${ROOT}/sbin/chromeos_startup"
anush 2010/05/05 18:02:42 Drive by review. It is a bad idea for one ebuild t
Chris Masone 2010/05/05 22:29:22 +1 On 2010/05/05 18:02:42, anush wrote:
+}
+
« no previous file with comments | « no previous file | chromeos/scripts/customize_rootfs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698