Skip to content

Commit f11b251

Browse files
committed
Always install sudo
If sudo is not installed, --allow-sudo does not work.
1 parent 3c73ae6 commit f11b251

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bin/make-base-vm

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ if [ $DISTRO = "debian" ]; then
147147
LOCALE_PKG=locales
148148
fi
149149

150-
addpkg=pciutils,build-essential,git,subversion,$LOCALE_PKG,wget,lsb-release
150+
addpkg=pciutils,build-essential,git,subversion,$LOCALE_PKG,wget,lsb-release,sudo
151151

152152
if [ $DISTRO = "ubuntu" ]; then
153153
# Need comma at end to work around an issue with apt for Debian <= Wheezy regarding empty strings
@@ -171,9 +171,6 @@ fi
171171

172172
if [ $LXC = "1" ]; then
173173
addpkg=$addpkg,lxc
174-
if [ $DISTRO = "debian" ]; then
175-
addpkg=$addpkg,sudo
176-
fi
177174
else
178175
# Lack of comma after KERNEL_PKG is not a typo
179176
addpkg=$addpkg,${KERNEL_PKG}${GRUB_PKG},openssh-server

0 commit comments

Comments
 (0)