Merge "Fix opensuse-minimal element on non-SUSE hosts"
This commit is contained in:
commit
08ad06f86d
@ -2,6 +2,7 @@ export DISTRO_NAME=opensuse
|
|||||||
DIB_RELEASE=${DIB_RELEASE:-42.2}
|
DIB_RELEASE=${DIB_RELEASE:-42.2}
|
||||||
export DIB_RELEASE=${DIB_RELEASE,,}
|
export DIB_RELEASE=${DIB_RELEASE,,}
|
||||||
export DIB_OPENSUSE_MIRROR=${DIB_OPENSUSE_MIRROR:-http://download.opensuse.org}
|
export DIB_OPENSUSE_MIRROR=${DIB_OPENSUSE_MIRROR:-http://download.opensuse.org}
|
||||||
|
export DIB_OPENSUSE_PATTERNS=patterns-openSUSE-base
|
||||||
case ${DIB_RELEASE} in
|
case ${DIB_RELEASE} in
|
||||||
# We are using "=>" as the assignment symbol since "@" "=" etc could be used in the URI itself.
|
# We are using "=>" as the assignment symbol since "@" "=" etc could be used in the URI itself.
|
||||||
# Remember, we can't export an array in bash so we use a string instead.
|
# Remember, we can't export an array in bash so we use a string instead.
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
export DISTRO_NAME=opensuse
|
export DISTRO_NAME=opensuse
|
||||||
export DIB_RELEASE=${DIB_RELEASE:-42.2}
|
export DIB_RELEASE=${DIB_RELEASE:-42.2}
|
||||||
|
export DIB_OPENSUSE_PATTERNS=patterns-openSUSE-base
|
||||||
case ${DIB_RELEASE} in
|
case ${DIB_RELEASE} in
|
||||||
# Old openSUSE releases
|
# Old openSUSE releases
|
||||||
13*) export OPENSUSE_REPO_DIR=openSUSE_${DIB_RELEASE} ;;
|
13*) export OPENSUSE_REPO_DIR=openSUSE_${DIB_RELEASE} ;;
|
||||||
|
@ -71,9 +71,7 @@ sudo mount -t sysfs none $TARGET_ROOT/sys
|
|||||||
# Install filesystem, base and useful tools
|
# Install filesystem, base and useful tools
|
||||||
sudo zypper ${ZYPPER_TARGET_OPTS} install ${ZYPPER_INSTALL_OPTS} filesystem
|
sudo zypper ${ZYPPER_TARGET_OPTS} install ${ZYPPER_INSTALL_OPTS} filesystem
|
||||||
# Install basic components in order
|
# Install basic components in order
|
||||||
sudo zypper ${ZYPPER_TARGET_OPTS} install ${ZYPPER_INSTALL_OPTS} -t pattern base
|
sudo zypper ${ZYPPER_TARGET_OPTS} install ${ZYPPER_INSTALL_OPTS} ${DIB_OPENSUSE_PATTERNS} python zypper sudo
|
||||||
# Install a few useful tools
|
|
||||||
sudo zypper ${ZYPPER_TARGET_OPTS} install ${ZYPPER_INSTALL_OPTS} python zypper
|
|
||||||
|
|
||||||
# Put in a dummy /etc/resolv.conf over the temporary one we used
|
# Put in a dummy /etc/resolv.conf over the temporary one we used
|
||||||
# to bootstrap. systemd has a bug/feature [1] that it will assume
|
# to bootstrap. systemd has a bug/feature [1] that it will assume
|
||||||
|
Loading…
Reference in New Issue
Block a user