Skip to content

Commit

Permalink
fix: correctly handle empty MODULES=() in mkinitcpio
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariKnight committed Mar 14, 2024
1 parent 3fceb14 commit 4637643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/configs/config_mkinitcpio.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func Set_Mkinitcpio() {

// Make a regex to find the modules line
module_line_re := regexp.MustCompile(`^MODULES=`)
modules_re := regexp.MustCompile(`MODULES=\((.+?)\)`)
modules_re := regexp.MustCompile(`MODULES=\((.*)\)`)
vfio_modules_re := regexp.MustCompile(`(vfio_iommu_type1|vfio_pci|vfio_virqfd|vfio|vendor-reset)`)

// Read the mkinitcpio file
Expand Down

0 comments on commit 4637643

Please sign in to comment.