Commit 31b3525 1 parent 68f1357 commit 31b3525 Copy full SHA for 31b3525
File tree 2 files changed +30
-20
lines changed
2 files changed +30
-20
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/bin/env sh
1
+ #! /usr/bin/env bash
2
+
3
+ set -o pipefail
4
+
5
+
6
+ APT=' apt-get -qq -y'
7
+
2
8
3
9
#
4
10
# Install Ubuntu dependencies
5
11
# The dependencies of one level would also be needed for the next ones
6
12
#
7
13
8
14
# Update cache
9
- dpkg --add-architecture i386
10
- apt-get update -qq || exit 1
15
+ dpkg --add-architecture i386 &&
16
+ $APT update || exit 1
17
+
18
+
19
+ # Ubuntu 14.04 LTS has an old version of qemu-user (2.0.0)
20
+ # Install the one from the Vivid repository
21
+ wget -P deps \
22
+ http://security.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user_2.2+dfsg-5expubuntu9.5_amd64.deb &&
23
+ dpkg -i deps/* .deb || exit 2
11
24
12
25
13
26
# cross-compiler
14
- apt-get install -qq -y gcc texinfo || exit 10
27
+ $APT install gcc texinfo || exit 10
15
28
16
29
# barebones
17
- apt-get install -qq -y bc qemu-system qemu-user || exit 11
18
-
19
- # initramfs
20
- apt-get install -qq -y nodejs-legacy || exit 12
30
+ $APT install bc qemu-system qemu-user || exit 11
21
31
22
32
# rootfs
23
- apt-get install -qq -y genisoimage libuuid1:i386 || exit 13
33
+ $APT install genisoimage libuuid1:i386 || exit 12
24
34
25
35
# usersfs
26
- apt-get install -qq -y autoconf automake || exit 14
36
+ $APT install autoconf automake || exit 13
27
37
28
38
29
- # Update Node.js to v0.12
30
- curl -sL https://deb.nodesource.com/setup_0.12 | bash || exit 15
31
- apt-get install -qq -y nodejs || exit 16
39
+ # Update Node.js to v0.12 from the NodeSource repository
40
+ curl -sL https://deb.nodesource.com/setup_0.12 | bash &&
41
+ $APT install nodejs || exit 20
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
4
- PLATFORM=iso_32 npm install --no-spin || exit $?
5
- PLATFORM=iso_64 npm install --no-spin || exit $?
6
- PLATFORM=qemu_32 npm install --no-spin || exit $?
7
- PLATFORM=qemu_64 npm install --no-spin || exit $?
8
- # PLATFORM=raspberry npm install --no-spin || exit $?
9
- PLATFORM=vagga_32 npm install --no-spin || exit $?
10
- PLATFORM=vagga_64 npm install --no-spin || exit $?
4
+ PLATFORM=iso_32 npm install --no-spin || exit 1
5
+ PLATFORM=iso_64 npm install --no-spin || exit 2
6
+ PLATFORM=qemu_32 npm install --no-spin || exit 3
7
+ PLATFORM=qemu_64 npm install --no-spin || exit 4
8
+ # PLATFORM=raspberry npm install --no-spin || exit 5
9
+ PLATFORM=vagga_32 npm install --no-spin || exit 6
10
+ PLATFORM=vagga_64 npm install --no-spin || exit 7
You can’t perform that action at this time.
0 commit comments