livecd-rootfs/live-build/ubuntu-core/hooks/16-ensure-uboot.chroot
Adam Conrad 7570a3c606 Import patches-unapplied version 2.411 to ubuntu/yakkety-proposed
Imported using git-ubuntu import.

Changelog parent: aca40d6ebfe51f31b27d745d4b21b8b724c7582b

New changelog entries:
  [ Michael Vogt ]
  * update kernel snap building to match the new kernel policy
  * system-image: add /usr/local/bin/xdg-open dbus helper
  [ Oliver Grawert ]
  * add u-boot-tools to all snappy arches
  * drop flash-kernel from snappy, it is useless there
  * create /boot/uboot dir on all arches and configure /etc/fw_env.config
    everywhere
  * adjust motd message on snappy (capitalize "Snappy Ubuntu Core" and replace
    the "snappy --help" with "snap --help"
  [ Adam Conrad ]
  * Stop explicitly removing systemd-sysv for touch.
  * Move touch resolution hints to a HINTS variable, and adjust for use
    on dual-stack gl/gles arches where things don't quite work right.
2016-05-27 03:34:14 +00:00

17 lines
435 B
Bash

#!/bin/sh
set -e
mkdir -p /boot/uboot
cat > /etc/fw_env.config <<EOF
# snappy u-boot env config
# its crucial that we have the two entries here
# u-boot/tools/env/fw_env.c
# will read only 4 header bytes if its a single
# line but our header has 5 byte. by having two
# entries like this in the config it magically
# switches to the 5 byte header type
/boot/uboot/uboot.env 0x0000 0x20000
/boot/uboot/uboot.env 0x0000 0x20000
EOF