| 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 28 matching lines...) Expand all Loading... |
| 39 warn_reboot = no | 39 warn_reboot = no |
| 40 do_bootloader = no | 40 do_bootloader = no |
| 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. |
| 50 # TODO: Move this and other developer oriented "components" into an optional |
| 51 # package-list-prod-dev.txt (ideally with a better name). |
| 50 apt-get --yes --force-yes --no-install-recommends install bootchart | 52 apt-get --yes --force-yes --no-install-recommends install bootchart |
| 51 # TODO: add pybootchartgui to create pretty picture. | 53 apt-get --yes --force-yes --no-install-recommends install pybootchartgui |
| 52 | |
| 53 | 54 |
| 54 # Install additional packages from a second mirror, if necessary. This must | 55 # Install additional packages from a second mirror, if necessary. This must |
| 55 # be done after all packages from the first repository are installed; after | 56 # 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 | 57 # the apt-get update, apt-get and debootstrap will prefer the newest package |
| 57 # versions (which are probably on this second mirror). | 58 # versions (which are probably on this second mirror). |
| 58 if [ -f "$PACKAGE_LIST_FILE2" ] | 59 if [ -f "$PACKAGE_LIST_FILE2" ] |
| 59 then | 60 then |
| 60 COMPONENTS2=`cat $PACKAGE_LIST_FILE2 | grep -v ' *#' | grep -v '^ *$' | sed '/
$/{N;s/\n/ /;}'` | 61 COMPONENTS2=`cat $PACKAGE_LIST_FILE2 | grep -v ' *#' | grep -v '^ *$' | sed '/
$/{N;s/\n/ /;}'` |
| 61 | 62 |
| 62 echo "deb $SERVER2 $SUITE2 main restricted multiverse universe" \ | 63 echo "deb $SERVER2 $SUITE2 main restricted multiverse universe" \ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 73 # $SETUP_DIR (which is under /tmp). | 74 # $SETUP_DIR (which is under /tmp). |
| 74 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ | 75 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ |
| 75 > /etc/package_list_installed.txt" | 76 > /etc/package_list_installed.txt" |
| 76 | 77 |
| 77 # Clean up other useless stuff created as part of the install process. | 78 # Clean up other useless stuff created as part of the install process. |
| 78 rm -f /var/cache/apt/archives/*.deb | 79 rm -f /var/cache/apt/archives/*.deb |
| 79 | 80 |
| 80 # List all packages still installed post-pruning | 81 # List all packages still installed post-pruning |
| 81 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ | 82 sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \ |
| 82 > /etc/package_list_pruned.txt" | 83 > /etc/package_list_pruned.txt" |
| OLD | NEW |