implement backup system

This commit is contained in:
HikariKnight 2023-04-10 18:33:48 +02:00
parent 7eb7e2fa1c
commit 300ca653cc
6 changed files with 88 additions and 6 deletions

View file

@ -29,4 +29,7 @@ func Set_Dracut() {
// Add to our kernel arguments file that vfio_pci should load early (dracut does this using kernel arguments)
fileio.AppendContent(" rd.driver.pre=vfio_pci", config.Path.CMDLINE)
// Make a backup of dracutConf if there is one there
backupFile(strings.Replace(dracutConf, "config", "", 1))
}