Update buildah scratch demo to support el7

Signed-off-by: pixdrift <support@pixeldrift.net>

Closes: #679
Approved by: rhatdan
This commit is contained in:
pixdrift 2018-05-12 03:05:48 +10:00 committed by Atomic Bot
parent ce8d467628
commit fa2ae6a239
1 changed files with 3 additions and 3 deletions

View File

@ -41,13 +41,13 @@ read -p "${cyan}Time to install some basic bash capabilities: coreutils and bash
if [ "$pkgmgr" == "dnf" ]; then
$pkgmgr install --installroot $scratchmnt --release ${distrorelease} bash coreutils --setopt install_weak_deps=false -y
elif [ "$pkgmgr" == "yum" ]; then
$pkgmgr install --installroot $scratchmnt --release ${distrorelease} bash coreutils -y
$pkgmgr install --installroot $scratchmnt --releasever ${distrorelease} bash coreutils -y
else
echo -e "${red}[Error] Unknown package manager ${pkgmgr}${reset}"
fi
read -p "${cyan}Clean up the packages${reset}"
$pkgmgr clean --installroot $scratchmnt --release ${distrorelease} all
$pkgmgr clean --installroot $scratchmnt all
read -p "${green}Run the shell and see what is inside. When your done, type ${red}exit${green} and return.${reset}"
buildah run $newcontainer bash
read -p "${cyan}Let's look at the program${yellow}"