File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments