get current modules and modules from our config folder
This commit is contained in:
parent
9870b51c26
commit
b4a45b4228
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ function set_MKINITCPIO () {
|
||||||
source "$SCRIPTDIR/lib/paths.sh"
|
source "$SCRIPTDIR/lib/paths.sh"
|
||||||
|
|
||||||
# Grab the current modules but exclude vfio and vendor-reset
|
# Grab the current modules but exclude vfio and vendor-reset
|
||||||
CURRENTMODULES=$(grep -P "^MODULES" /etc/mkinitcpio.conf | perl -pe "s/MODULES=\((.+)\)/\1/")
|
CURRENTMODULES=$(grep -P "^MODULES" "$SCRIPTDIR/$MKINITCPIO" | perl -pe "s/MODULES=\((.+)\)/\1/")
|
||||||
MODULES="$(grep -P "^MODULES" /etc/mkinitcpio.conf | perl -pe "s/MODULES=\((.+)\)/\1/" | perl -pe "s/\s?(vfio_iommu_type1|vfio_pci|vfio_virqfd|vfio|vendor-reset)\s?//g")"
|
MODULES="$(grep -P "^MODULES" "$SCRIPTDIR/$MKINITCPIO" | perl -pe "s/MODULES=\((.+)\)/\1/" | perl -pe "s/\s?(vfio_iommu_type1|vfio_pci|vfio_virqfd|vfio|vendor-reset)\s?//g")"
|
||||||
|
|
||||||
if [[ $CURRENTMODULES =~ "vendor-reset" ]];
|
if [[ $CURRENTMODULES =~ "vendor-reset" ]];
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue