tripleo-image-elements/elements/localboot
Zhenzan Zhou 476af25730 Fix ubuntu grub-pc install failure
When creating an ubuntu image with localboot, the postinst script
of grub-pc will try to find root device and install grub which will
definitely fail in such a chroot environment.

Closes-Bug: #1437548
Change-Id: Ia29387f33c33e760c2711c687a43025b2013bd84
2015-04-01 14:13:35 +08:00
..
cleanup.d Allow custom root labels 2014-09-16 13:27:49 -05:00
install.d Fix ubuntu grub-pc install failure 2015-04-01 14:13:35 +08:00
os-refresh-config/configure.d adding local boot support for uboot arm arch 2014-10-24 15:22:38 +05:30
README.md adding local boot support for uboot arm arch 2014-10-24 15:22:38 +05:30
element-deps Adds local storage Boot support on PXE failures. 2014-06-20 22:48:11 +05:30

README.md

Installs grub boot loader from packages.

If you want to build an image with localboot for non arm architecture:

* Set up grub boot loader on the disk using os-refresh-config when system boot
  up and enables boot from HDD. This needs at least one PXE boot after deployment
  to work properly.
  In case Grub serial terminal support is needed, use serial-console element.

If you want to build an image with localboot for uboot arm boards:

* uboot (when set to boot from the disk) looks on the first disk partition
  for a file named boot.scr in / or /boot.  This is a uboot
  script file, packaged in the special uboot format (like uImage and uInitrd)
  by the mkimage command, that tells uboot where the kernel and initrd are, and
  what the kernel boot arguments. This file is created by mkimage command
  using the flash-kernel script, provided by the u-boot-tools package.

* The user must provide a uboot script file which contains kernel, initrd and console
  parameters. This file path is read from an environment variable named
  UBOOT\_SCRIPT\_FILE\_PATH.