-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from OSInside/fix_ubuntu_box_description
Fix Ubuntu box build
- Loading branch information
Showing
2 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
# Intermediate C locale setup | ||
export LANG=C.UTF-8 | ||
export LANGUAGE= | ||
|
||
# Intermediate Noninteractive debconf | ||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||
|
||
# Download packages for which we need the script code | ||
apt-get -q -c /kiwi_apt.conf -y --no-install-recommends install \ | ||
"-oDebug::pkgDPkgPm=1" "-oDPkg::Pre-Install-Pkgs::=cat >/tmp/postpacks" \ | ||
base-passwd | ||
|
||
# Run package scripts for core OS packages which provides | ||
# mandatory setup code in their pre/post scripts | ||
export DPKG_ROOT=/ | ||
while read -r package;do | ||
pushd "$(dirname "${package}")" || exit 1 | ||
if [ "$(basename "${package}")" = "base-passwd.deb" ];then | ||
# Required to create passwd, groups, the root user... | ||
dpkg -e "${package}" | ||
test -e DEBIAN/preinst && bash DEBIAN/preinst install | ||
test -e DEBIAN/postinst && bash DEBIAN/postinst | ||
rm -rf DEBIAN | ||
fi | ||
popd || exit 1 | ||
done < /tmp/postpacks | ||
rm -f /tmp/postpacks |