| OLD | NEW |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 49 # Setup bootchart. |
| 50 # TODO: Move this and other developer oriented "components" into an optional | 50 # TODO: Move this and other developer oriented "components" into an optional |
| 51 # package-list-prod-dev.txt (ideally with a better name). | 51 # package-list-prod-dev.txt (ideally with a better name). |
| 52 apt-get --yes --force-yes --no-install-recommends install bootchart | 52 apt-get --yes --force-yes --no-install-recommends install bootchart |
| 53 apt-get --yes --force-yes --no-install-recommends install pybootchartgui | |
| 54 | 53 |
| 55 # Install additional packages from a second mirror, if necessary. This must | 54 # Install additional packages from a second mirror, if necessary. This must |
| 56 # 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 |
| 57 # 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 |
| 58 # versions (which are probably on this second mirror). | 57 # versions (which are probably on this second mirror). |
| 59 if [ -f "$PACKAGE_LIST_FILE2" ] | 58 if [ -f "$PACKAGE_LIST_FILE2" ] |
| 60 then | 59 then |
| 61 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/ /;}'` |
| 62 | 61 |
| 63 echo "deb $SERVER2 $SUITE2 main restricted multiverse universe" \ | 62 echo "deb $SERVER2 $SUITE2 main restricted multiverse universe" \ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 74 # $SETUP_DIR (which is under /tmp). | 73 # $SETUP_DIR (which is under /tmp). |
| 75 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ | 74 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ |
| 76 > /etc/package_list_installed.txt" | 75 > /etc/package_list_installed.txt" |
| 77 | 76 |
| 78 # 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. |
| 79 rm -f /var/cache/apt/archives/*.deb | 78 rm -f /var/cache/apt/archives/*.deb |
| 80 | 79 |
| 81 # List all packages still installed post-pruning | 80 # List all packages still installed post-pruning |
| 82 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ | 81 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ |
| 83 > /etc/package_list_pruned.txt" | 82 > /etc/package_list_pruned.txt" |
| OLD | NEW |