~nacc/livecd-rootfs/iscsi-initiatorname

« back to all changes in this revision

Viewing changes to live-build/ubuntu-touch/hooks/60-install-click.chroot

  • Committer: Steve Langasek
  • Date: 2016-09-14 19:24:38 UTC
  • Revision ID: steve.langasek@canonical.com-20160914192438-eddi96ddufhfg4u4
Temporarily change the 60-install-click.chroot script to pull in clicks for
arm64 builds from a different location for ubuntu-touch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
echo "Setting up click packages"
6
6
 
 
7
CLICKARCH=$(dpkg --print-architecture)
 
8
 
7
9
click_uri=http://archive-team.internal/click_packages
8
 
click_list=$click_uri/click_list
 
10
if [ "$CLICKARCH" = "arm64" ]; then
 
11
    # FIXME: this is temporary. Since right now we can't have arm64 clicks in the store
 
12
    # (before implementing fat-packages), we need to fetch the arm64 click list from a
 
13
    # different place 
 
14
    click_list=$click_uri/click_list.arm64
 
15
    click_install_flags="--allow-unauthenticated"
 
16
else
 
17
    click_list=$click_uri/click_list
 
18
    click_install_flags=""
 
19
fi
9
20
click_db=/usr/share/click/preinstalled
10
21
click_db_custom=/custom/click
11
22
 
20
31
cleanup () { rm -rf "$tmpdir"; }
21
32
trap cleanup EXIT
22
33
 
23
 
CLICKARCH=$(dpkg --print-architecture)
24
 
 
25
34
wget --no-verbose -O "$tmpdir/click_list" "$click_list"
26
35
for package in $(cat "$tmpdir/click_list")
27
36
do
61
70
                mv /etc/click/databases/10_core.conf \
62
71
                   /etc/click/databases/10_core.conf.tmp
63
72
            fi
64
 
            click install --force-missing-framework --root="$root" --all-users \
 
73
            click install --force-missing-framework --root="$root" --all-users $click_install_flags \
65
74
                "$tmpdir/$package"
66
75
            if [ "$root" = "$click_db_custom" ]; then
67
76
                mv /etc/click/databases/10_core.conf.tmp \