diskimage-builder/elements/zypper/pre-install.d/01-zypper-keep-packages
Chris Krelle 336e286637 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
2014-06-24 16:20:55 -07:00

8 lines
125 B
Bash
Executable File

#!/bin/bash
set -eu
set -o pipefail
# Enable caching packages for all repositories
zypper modifyrepo --all --keep-packages