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

Side by Side 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, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | chromeos/scripts/customize_rootfs » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Distributed under the terms of the GNU General Public License v2 2 # Distributed under the terms of the GNU General Public License v2
3 3
4 EAPI=2 4 EAPI=2
5 5
6 DESCRIPTION="Chrome OS Factory Installer" 6 DESCRIPTION="Chrome OS Factory Installer"
7 HOMEPAGE="http://src.chromium.org" 7 HOMEPAGE="http://src.chromium.org"
8 SRC_URI="" 8 SRC_URI=""
9 LICENSE="BSD" 9 LICENSE="BSD"
10 SLOT="0" 10 SLOT="0"
11 KEYWORDS="x86 arm" 11 KEYWORDS="x86 arm"
12 IUSE="" 12 IUSE=""
13 13
14 DEPEND="" 14 DEPEND=""
15 15
16 RDEPEND="chromeos-base/chromeos-installer 16 RDEPEND="chromeos-base/chromeos-installer
17 chromeos-base/chromeos-init 17 chromeos-base/chromeos-init
18 chromeos-base/memento_softwareupdate" 18 chromeos-base/memento_softwareupdate"
19 19
20 src_unpack() { 20 src_unpack() {
21 local factory_installer="${CHROMEOS_ROOT}/src/platform/factory_installer" 21 » local factory_installer="${CHROMEOS_ROOT}/src/platform/factory_installer "
22 elog "Using factory_installer: $factory_installer" 22 » elog "Using factory_installer: $factory_installer"
23 mkdir "${S}" 23 » mkdir "${S}"
24 cp -a "${factory_installer}"/* "${S}" || die 24 » cp -a "${factory_installer}"/* "${S}" || die
25 } 25 }
26 26
27 src_install() { 27 src_install() {
28 insinto /etc/init 28 insinto /etc/init
29 doins factory_install.conf 29 doins factory_install.conf
30 doins factory_ui.conf
30 31
31 exeinto /usr/sbin 32 exeinto /usr/sbin
32 doexe factory_install.sh 33 doexe factory_install.sh
33 } 34 }
35
36 pkg_postinst() {
37 # TODO(nsanders): Can this be set in make.conf?
38 : ${FACTORY_SERVER:="meatball.mtv.corp.google.com"}
39
40 sed -i \
41 "s/CHROMEOS_AUSERVER=.*$/CHROMEOS_AUSERVER=\
42 http:\/\/${FACTORY_SERVER}:8080\/update/" \
43 ${ROOT}/etc/lsb-release
44
45 # sudo friendly append.
46 cat <<EOF | sudo dd of="${ROOT}/etc/lsb-release" \
47 oflag=append conv=notrunc
48 FACTORY_INSTALL=1
49 HTTP_SERVER_OVERRIDE=true
50 EOF
51
52 # No devserver.
53 sed -i '/CHROMEOS_DEVSERVER=/d' "${ROOT}/etc/lsb-release"
54
55 # Remove ui.conf startup script, which will make sure chrome doesn't
56 # run, since it tries to update on startup
57 sed -i 's/start on stopping startup/start on never/' \
58 "${ROOT}/etc/init/ui.conf"
59 # Set network to start up another way
60 sed -i 's/login-prompt-ready/stopping startup/' \
61 "${ROOT}/etc/init/dump-boot-stats.conf"
62 # Allow text progress for now.
63 sed -i 's/\[ \-x \/usr\/bin\/ply\-image \]/false/' \
64 "${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:
65 }
66
OLDNEW
« 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