From 336e2866376afa0e78ca26f1048ec71b52551b14 Mon Sep 17 00:00:00 2001 From: Chris Krelle Date: Tue, 24 Jun 2014 16:16:08 -0700 Subject: [PATCH] update zypper element Scripts in pre-install.d run as root so there is no need to sudo commands. This patch also helps avoid an error when sudo is not installed in the default image. Change-Id: Iab20edfb161189f8c4e0cfa7d6946f63163d6413 --- elements/zypper/pre-install.d/01-zypper-keep-packages | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/zypper/pre-install.d/01-zypper-keep-packages b/elements/zypper/pre-install.d/01-zypper-keep-packages index 7440c185..ad861bcb 100755 --- a/elements/zypper/pre-install.d/01-zypper-keep-packages +++ b/elements/zypper/pre-install.d/01-zypper-keep-packages @@ -4,4 +4,4 @@ set -eu set -o pipefail # Enable caching packages for all repositories -sudo zypper modifyrepo --all --keep-packages +zypper modifyrepo --all --keep-packages