Skip to content

Commit a6353c6

Browse files
add back NOPRIME, and explicitly install libvirt-bin
1 parent 9f3ebce commit a6353c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stack.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ fi
376376

377377
# - We are going to install packages only for the services needed.
378378
# - We are parsing the packages files and detecting metadatas.
379+
# - If there is a NOPRIME as comment mean we are not doing the install
380+
# just yet.
379381
# - If we have the meta-keyword distro:DISTRO or
380382
# distro:DISTRO1,DISTRO2 it will be installed only for those
381383
# distros (case insensitive).
@@ -409,6 +411,10 @@ function get_packages() {
409411
OIFS=$IFS
410412
IFS=$'\n'
411413
for line in $(<${fname}); do
414+
if [[ $line =~ "NOPRIME" ]]; then
415+
continue
416+
fi
417+
412418
if [[ $line =~ (.*)#.*dist:([^ ]*) ]]; then # We are using BASH regexp matching feature.
413419
package=${BASH_REMATCH[1]}
414420
distros=${BASH_REMATCH[2]}
@@ -671,6 +677,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
671677
# kvm, we drop back to the slower emulation mode (qemu). Note: many systems
672678
# come with hardware virtualization disabled in BIOS.
673679
if [[ "$LIBVIRT_TYPE" == "kvm" ]]; then
680+
apt_get install libvirt-bin
674681
sudo modprobe kvm || true
675682
if [ ! -e /dev/kvm ]; then
676683
echo "WARNING: Switching to QEMU"

0 commit comments

Comments
 (0)