Add function for setting cmdline and writing the config/cmdline file

This commit is contained in:
HikariKnight 2023-04-09 17:01:33 +02:00
parent 3ee1062f71
commit c3a1639dee
2 changed files with 24 additions and 6 deletions

View file

@ -76,9 +76,6 @@ func InitConfigs() {
// Make the config folder
os.Mkdir("config", os.ModePerm)
// Generate the kernel arguments
set_Cmdline()
// Make a regex to get the system path instead of the config path
syspath_re := regexp.MustCompile(`^config`)
@ -136,4 +133,7 @@ func InitConfigs() {
}
}
}
// Generate the kernel arguments
set_Cmdline()
}