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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 # NOTE: These magic grub variables are a Chrome OS hack. They are not portable. | 442 # NOTE: These magic grub variables are a Chrome OS hack. They are not portable. |
443 | 443 |
444 menuentry "local image A" { | 444 menuentry "local image A" { |
445 linux $grubpartA/boot/vmlinuz quiet console=tty2 init=/sbin/init boot=local ro
otwait root=/dev/$linuxpartA ro noresume noswap i915.modeset=1 loglevel=1 | 445 linux $grubpartA/boot/vmlinuz quiet console=tty2 init=/sbin/init boot=local ro
otwait root=/dev/$linuxpartA ro noresume noswap i915.modeset=1 loglevel=1 |
446 } | 446 } |
447 | 447 |
448 menuentry "local image B" { | 448 menuentry "local image B" { |
449 linux $grubpartB/boot/vmlinuz quiet console=tty2 init=/sbin/init boot=local ro
otwait root=/dev/$linuxpartB ro noresume noswap i915.modeset=1 loglevel=1 | 449 linux $grubpartB/boot/vmlinuz quiet console=tty2 init=/sbin/init boot=local ro
otwait root=/dev/$linuxpartB ro noresume noswap i915.modeset=1 loglevel=1 |
450 } | 450 } |
451 | 451 |
| 452 menuentry "Alternate USB Boot" { |
| 453 linux (hd0,3)/boot/vmlinuz quiet console=tty2 init=/sbin/init boot=local rootw
ait root=/dev/sdb3 ro noresume noswap i915.modeset=1 loglevel=1 |
| 454 } |
| 455 |
452 EOF | 456 EOF |
453 | 457 |
454 # FIXME: At the moment, we're working on signed images for x86 only. ARM will | 458 # FIXME: At the moment, we're working on signed images for x86 only. ARM will |
455 # support this before shipping, but at the moment they don't. | 459 # support this before shipping, but at the moment they don't. |
456 if [[ "$ARCH" = "x86" ]]; then | 460 if [[ "$ARCH" = "x86" ]]; then |
457 | 461 |
458 # Legacy BIOS will use the kernel in the rootfs (via syslinux), as will | 462 # Legacy BIOS will use the kernel in the rootfs (via syslinux), as will |
459 # standard EFI BIOS (via grub, from the EFI System Partition). Chrome OS BIOS | 463 # standard EFI BIOS (via grub, from the EFI System Partition). Chrome OS BIOS |
460 # will use a separate signed kernel partition, which we'll create now. | 464 # will use a separate signed kernel partition, which we'll create now. |
461 # FIXME: remove serial output, debugging messages | 465 # FIXME: remove serial output, debugging messages |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 echo "Recovery image created as $PRISTINE_IMAGE_NAME" | 565 echo "Recovery image created as $PRISTINE_IMAGE_NAME" |
562 fi | 566 fi |
563 if [ "$FLAGS_withdev" -eq "$FLAGS_TRUE" ]; then | 567 if [ "$FLAGS_withdev" -eq "$FLAGS_TRUE" ]; then |
564 echo "Developer image created as $DEVELOPER_IMAGE_NAME" | 568 echo "Developer image created as $DEVELOPER_IMAGE_NAME" |
565 fi | 569 fi |
566 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" | 570 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" |
567 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" | 571 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" |
568 echo "To convert to VMWare image, OUTSIDE the chroot, do something like:" | 572 echo "To convert to VMWare image, OUTSIDE the chroot, do something like:" |
569 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}" | 573 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}" |
570 echo "from the scripts directory where you entered the chroot." | 574 echo "from the scripts directory where you entered the chroot." |
OLD | NEW |