File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,15 @@ fn_deps_build_debian(){
454
454
elif [ " ${shortname} " == " pvr" ]; then
455
455
array_deps_required+=( libc++1 )
456
456
fi
457
+
458
+ # check if system is a lxc container and the hostname dependency.
459
+ if command -v systemd-detect-virt & > /dev/null; then
460
+ systemd_virt=$( systemd-detect-virt)
461
+ if [ " ${systemd_virt} " == " lxc" ]|| [ " ${systemd_virt} " == " lxc-libvirt" ]; then
462
+ array_deps_required+=( hostname )
463
+ fi
464
+ fi
465
+
457
466
fn_deps_email
458
467
fn_check_loop
459
468
}
@@ -557,6 +566,15 @@ fn_deps_build_redhat(){
557
566
elif [ " ${shortname} " == " pvr" ]; then
558
567
array_deps_required+=( libcxx )
559
568
fi
569
+
570
+ # check if system is a lxc container and the hostname dependency.
571
+ if command -v systemd-detect-virt & > /dev/null; then
572
+ systemd_virt=$( systemd-detect-virt)
573
+ if [ " ${systemd_virt} " == " lxc" ]|| [ " ${systemd_virt} " == " lxc-libvirt" ]; then
574
+ array_deps_required+=( hostname )
575
+ fi
576
+ fi
577
+
560
578
fn_deps_email
561
579
fn_check_loop
562
580
}
You can’t perform that action at this time.
0 commit comments