sudo support
This commit is contained in:
parent
c2f033f3fb
commit
a65be367d9
|
@ -10,6 +10,7 @@ groupdel dialout
|
||||||
groupadd -g "$gid" "${user}"
|
groupadd -g "$gid" "${user}"
|
||||||
useradd \
|
useradd \
|
||||||
-g "$gid" \
|
-g "$gid" \
|
||||||
|
-G sudo \
|
||||||
-u "$uid" \
|
-u "$uid" \
|
||||||
-d "/home/${user}" \
|
-d "/home/${user}" \
|
||||||
-s /bin/bash \
|
-s /bin/bash \
|
||||||
|
|
|
@ -32,3 +32,5 @@ apt-get install \
|
||||||
--allow-downgrades \
|
--allow-downgrades \
|
||||||
-y $(cat /etc/apt/packages-${ARCH}.list)
|
-y $(cat /etc/apt/packages-${ARCH}.list)
|
||||||
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*;
|
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*;
|
||||||
|
|
||||||
|
echo "%sudo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
|
||||||
|
|
|
@ -25,7 +25,11 @@ apt-get install -y --download-only --reinstall $( \
|
||||||
| awk -F'\t' '/^ii/ {print $2}' \
|
| awk -F'\t' '/^ii/ {print $2}' \
|
||||||
| awk '{print $1}' \
|
| awk '{print $1}' \
|
||||||
)
|
)
|
||||||
apt-get install -y --download-only $(cat /config/toolchain/packages-base.list)
|
apt-get install \
|
||||||
|
-y \
|
||||||
|
--download-only \
|
||||||
|
sudo \
|
||||||
|
$(cat /config/toolchain/packages-base.list)
|
||||||
|
|
||||||
( cd /var/cache/apt/archives \
|
( cd /var/cache/apt/archives \
|
||||||
&& find . -type f \( -iname \*.deb \) -exec sha256sum {} \; \
|
&& find . -type f \( -iname \*.deb \) -exec sha256sum {} \; \
|
||||||
|
|
Loading…
Reference in New Issue