sudo support

This commit is contained in:
Lance Vick 2023-04-13 14:20:55 -07:00
parent c2f033f3fb
commit a65be367d9
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
3 changed files with 8 additions and 1 deletions

View File

@ -10,6 +10,7 @@ groupdel dialout
groupadd -g "$gid" "${user}"
useradd \
-g "$gid" \
-G sudo \
-u "$uid" \
-d "/home/${user}" \
-s /bin/bash \

View File

@ -32,3 +32,5 @@ apt-get install \
--allow-downgrades \
-y $(cat /etc/apt/packages-${ARCH}.list)
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*;
echo "%sudo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers

View File

@ -25,7 +25,11 @@ apt-get install -y --download-only --reinstall $( \
| awk -F'\t' '/^ii/ {print $2}' \
| 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 \
&& find . -type f \( -iname \*.deb \) -exec sha256sum {} \; \