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

Side by Side Diff: src/scripts/install_packages.sh

Issue 501071: Here's the upgrade-everything-to-Karmic change. As promised, some fairly (Closed)
Patch Set: Remove java stuff, restore image size. Created 11 years 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 | « src/platform/screenlocker/debian/control ('k') | src/scripts/make_chroot.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Sets up the chromium-based os from inside a chroot of the root fs. 7 # Sets up the chromium-based os from inside a chroot of the root fs.
8 # NOTE: This script should be called by build_image.sh. Do not run this 8 # NOTE: This script should be called by build_image.sh. Do not run this
9 # on your own unless you know what you are doing. 9 # on your own unless you know what you are doing.
10 10
(...skipping 30 matching lines...) Expand all
41 do_initrd = yes 41 do_initrd = yes
42 warn_initrd = no 42 warn_initrd = no
43 EOF 43 EOF
44 44
45 # NB: KERNEL_VERSION comes from customize_opts.sh 45 # NB: KERNEL_VERSION comes from customize_opts.sh
46 apt-get --yes --force-yes --no-install-recommends \ 46 apt-get --yes --force-yes --no-install-recommends \
47 install "linux-image-${KERNEL_VERSION}" 47 install "linux-image-${KERNEL_VERSION}"
48 48
49 # Setup bootchart. Due to dependencies, this adds about 180MB! 49 # Setup bootchart. Due to dependencies, this adds about 180MB!
50 apt-get --yes --force-yes --no-install-recommends install bootchart 50 apt-get --yes --force-yes --no-install-recommends install bootchart
51 # TODO: Replace this with pybootchartgui, or remove it entirely. 51 # TODO: add pybootchartgui to create pretty picture.
52 apt-get --yes --force-yes --no-install-recommends install bootchart-java 52
53 53
54 # Install additional packages from a second mirror, if necessary. This must 54 # Install additional packages from a second mirror, if necessary. This must
55 # be done after all packages from the first repository are installed; after 55 # be done after all packages from the first repository are installed; after
56 # the apt-get update, apt-get and debootstrap will prefer the newest package 56 # the apt-get update, apt-get and debootstrap will prefer the newest package
57 # versions (which are probably on this second mirror). 57 # versions (which are probably on this second mirror).
58 if [ -f "$PACKAGE_LIST_FILE2" ] 58 if [ -f "$PACKAGE_LIST_FILE2" ]
59 then 59 then
60 COMPONENTS2=`cat $PACKAGE_LIST_FILE2 | grep -v ' *#' | grep -v '^ *$' | sed '/ $/{N;s/\n/ /;}'` 60 COMPONENTS2=`cat $PACKAGE_LIST_FILE2 | grep -v ' *#' | grep -v '^ *$' | sed '/ $/{N;s/\n/ /;}'`
61 61
62 echo "deb $SERVER2 $SUITE2 main restricted multiverse universe" \ 62 echo "deb $SERVER2 $SUITE2 main restricted multiverse universe" \
(...skipping 10 matching lines...) Expand all
73 # $SETUP_DIR (which is under /tmp). 73 # $SETUP_DIR (which is under /tmp).
74 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ 74 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \
75 > /etc/package_list_installed.txt" 75 > /etc/package_list_installed.txt"
76 76
77 # Clean up other useless stuff created as part of the install process. 77 # Clean up other useless stuff created as part of the install process.
78 rm -f /var/cache/apt/archives/*.deb 78 rm -f /var/cache/apt/archives/*.deb
79 79
80 # List all packages still installed post-pruning 80 # List all packages still installed post-pruning
81 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ 81 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \
82 > /etc/package_list_pruned.txt" 82 > /etc/package_list_pruned.txt"
OLDNEW
« no previous file with comments | « src/platform/screenlocker/debian/control ('k') | src/scripts/make_chroot.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698