~xnox/debian-cd/drop-integrity-check-menu-entry

« back to all changes in this revision

Viewing changes to tools/boot/eoan/post-boot-armhf+nexus7

  • Committer: Adam Conrad
  • Date: 2019-04-20 08:07:06 UTC
  • Revision ID: adconrad@0c3.net-20190420080706-vayzyn7km03g6rz4
Copy disco -> eoan, and add eoan to CONF.sh

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
# Do post-image-building tasks for arm+ac100, to make vfat images bootable;
 
4
# this script encapsulates the VFAT image in a PC partition image, with
 
5
# unpartitioned data holding boot data; this is very board specific and targets
 
6
# the Marvell Dove reference boards (e.g. Y0/Y1) but might work on other Dove
 
7
# boards
 
8
#
 
9
# $1 is the CD number
 
10
# $2 is the temporary CD build dir
 
11
# $3 is the image file
 
12
#
 
13
# Copyright (c) 2009 Canonical
 
14
# Authors: Oliver Grawert <ogra@canonical.com>
 
15
#
 
16
 
 
17
. "$BASEDIR/tools/boot/$DI_CODENAME/common.sh"
 
18
 
 
19
set -e
 
20
 
 
21
N="$1"
 
22
CDDIR="$2"
 
23
IMAGENAME="$3"
 
24
 
 
25
log() {
 
26
    echo "$*" >&2
 
27
}
 
28
 
 
29
die() {
 
30
    log "$@"
 
31
    exit 1
 
32
}
 
33
 
 
34
# Only disk 1* bootable
 
35
if ([ "$N" != 1 ] && [ "$N" != 1_NONUS ]) || [ "$CDIMAGE_ADDON" ]; then
 
36
    exit 0
 
37
fi
 
38
 
 
39
if [ "$IMAGE_FORMAT" = "iso" ]; then
 
40
    exit 0
 
41
fi
 
42
 
 
43
cd "$CDDIR/.."
 
44
 
 
45
if [ "$CDIMAGE_PREINSTALLED" != 1 ]; then
 
46
    exit 0
 
47
fi
 
48
 
 
49
BOOTIMG_IN=$LIVEIMAGES/$FULLARCH.bootimg-$SUBARCH
 
50
BOOTIMG_OUT=$(echo $IMAGENAME|sed 's/.raw/.bootimg/')
 
51
 
 
52
log "Moving .bootimg file to ${BOOTIMG_OUT}"
 
53
mv "$BOOTIMG_IN" "$BOOTIMG_OUT"