| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 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 # Script to build a bootable keyfob-based chromeos system image from within | 7 # Script to build a bootable keyfob-based chromeos system image from within |
| 8 # a chromiumos setup. This assumes that all needed packages have been built into | 8 # a chromiumos setup. This assumes that all needed packages have been built into |
| 9 # the given target's root with binary packages turned on. This script will | 9 # the given target's root with binary packages turned on. This script will |
| 10 # build the Chrome OS image using only pre-built binary packages. | 10 # build the Chrome OS image using only pre-built binary packages. |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 | 469 |
| 470 # Legacy BIOS will use the kernel in the rootfs (via syslinux), as will | 470 # Legacy BIOS will use the kernel in the rootfs (via syslinux), as will |
| 471 # standard EFI BIOS (via grub, from the EFI System Partition). Chrome OS | 471 # standard EFI BIOS (via grub, from the EFI System Partition). Chrome OS |
| 472 # BIOS will use a separate signed kernel partition, which we'll create now. | 472 # BIOS will use a separate signed kernel partition, which we'll create now. |
| 473 # FIXME: remove serial output, debugging messages. | 473 # FIXME: remove serial output, debugging messages. |
| 474 cat <<'EOF' > "${OUTPUT_DIR}/config.txt" | 474 cat <<'EOF' > "${OUTPUT_DIR}/config.txt" |
| 475 earlyprintk=serial,ttyS0,115200 | 475 earlyprintk=serial,ttyS0,115200 |
| 476 console=ttyS0,115200 | 476 console=ttyS0,115200 |
| 477 init=/sbin/init | 477 init=/sbin/init |
| 478 add_efi_memmap | 478 add_efi_memmap |
| 479 gpt |
| 479 boot=local | 480 boot=local |
| 480 rootwait | 481 rootwait |
| 481 root=/dev/sd%D%P | 482 root=/dev/sd%D%P |
| 482 ro | 483 ro |
| 483 noresume | 484 noresume |
| 484 noswap | 485 noswap |
| 485 i915.modeset=1 | 486 i915.modeset=1 |
| 486 loglevel=7 | 487 loglevel=7 |
| 487 cros_secure | 488 cros_secure |
| 488 EOF | 489 EOF |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" | 615 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" |
| 615 fi | 616 fi |
| 616 | 617 |
| 617 print_time_elapsed | 618 print_time_elapsed |
| 618 | 619 |
| 619 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" | 620 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" |
| 620 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" | 621 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" |
| 621 echo "To convert to VMWare image, OUTSIDE the chroot, do something like:" | 622 echo "To convert to VMWare image, OUTSIDE the chroot, do something like:" |
| 622 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}" | 623 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}" |
| 623 echo "from the scripts directory where you entered the chroot." | 624 echo "from the scripts directory where you entered the chroot." |
| OLD | NEW |