File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
FROM ubuntu:22.04
2
2
3
- ARG VERSION=0.2 .0
3
+ ARG VERSION=0.3 .0
4
4
ARG BUILDTOOLS_VERSION=4.0.26
5
5
ARG BUILDTOOLS_SHA256=6938ec21608f6152632093f078a8d30eb2a7c9efa686e373f907a1b907e7be47
6
6
@@ -80,6 +80,9 @@ RUN apt-get update && \
80
80
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
81
81
locale-gen && \
82
82
\
83
+ echo 'dash dash/sh boolean false' | debconf-set-selections && \
84
+ dpkg-reconfigure dash && \
85
+ \
83
86
useradd -m -s /bin/bash yoctouser && \
84
87
usermod -aG sudo yoctouser && \
85
88
\
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ user_gid="${CUSTOM_GID:-1000}"
9
9
unset CUSTOM_UID
10
10
unset CUSTOM_GID
11
11
12
- if [ " $user_uid " != $( id -u " $user " ) ] || [ " $user_gid " != $( id -g " $user " ) ]; then
12
+ if [ " $user_uid " != " $( id -u " $user " ) " ] || [ " $user_gid " != " $( id -g " $user " ) " ]; then
13
13
groupmod --gid " $user_gid " " $user "
14
14
usermod --uid " $user_uid " --gid " $user_gid " " $user "
15
- chown " $user_uid " :" $user_gid " /home/" $user /.bashrc"
16
- chown " $user_uid " :" $user_gid " /home/" $user /.sudo_as_admin_successful"
15
+ chown " $user_uid " :" $user_gid " " /home/$user /.bashrc"
16
+ chown " $user_uid " :" $user_gid " " /home/$user /.sudo_as_admin_successful"
17
17
fi
18
18
19
19
exec gosu " $user " " $@ "
Original file line number Diff line number Diff line change @@ -15,13 +15,11 @@ trap 'rm -rf -- "$tmp_dir"' EXIT INT TERM
15
15
cd " $tmp_dir "
16
16
17
17
echo " Downloading Yocto Buildtools for release ${RELEASE} ..."
18
-
19
18
buildtools_installer=" x86_64-buildtools-extended-nativesdk-standalone-${RELEASE} .sh"
20
19
wget --quiet " https://downloads.yoctoproject.org/releases/yocto/yocto-${RELEASE} /buildtools/${buildtools_installer} "
21
20
22
- echo " ${SHA256SUM} ${buildtools_installer} " > checksum.sha256sum
23
-
24
21
echo " Verifying checksum..."
22
+ echo " ${SHA256SUM} ${buildtools_installer} " > checksum.sha256sum
25
23
sha256sum --check checksum.sha256sum
26
24
27
25
echo " Installing Yocto Buildtools..."
You can’t perform that action at this time.
0 commit comments