sudo support
This commit is contained in:
parent
c2f033f3fb
commit
a65be367d9
|
@ -10,6 +10,7 @@ groupdel dialout
|
|||
groupadd -g "$gid" "${user}"
|
||||
useradd \
|
||||
-g "$gid" \
|
||||
-G sudo \
|
||||
-u "$uid" \
|
||||
-d "/home/${user}" \
|
||||
-s /bin/bash \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {} \; \
|
||||
|
|
Reference in New Issue