mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-09-05 16:47:32 -04:00
Fix bad root UUID
This commit is contained in:
@@ -84,12 +84,12 @@ func addKernelParams(newParameters []string) {
|
|||||||
var parameters []string
|
var parameters []string
|
||||||
for i := 0; fScanner.Scan(); i++ {
|
for i := 0; fScanner.Scan(); i++ {
|
||||||
if i == 1 {
|
if i == 1 {
|
||||||
parameters = strings.Split(fScanner.Text(), " ")[2:]
|
parameters = strings.Split(fScanner.Text(), " ")[1:]
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
parameters = append(parameters, newParameters...)
|
parameters = append(parameters, newParameters...)
|
||||||
writeFile(mountPoint+"/boot/loader/entries/linux-cachyos.conf", "title Linux Cachyos\noptions root=UUID=e2ff600b-0202-4620-bed3-54d7a58414f8 "+strings.Join(parameters, " ")+"\nlinux /vmlinuz-linux-cachyos\ninitrd /initramfs-linux-cachyos.img\n", "root", 0700)
|
writeFile(mountPoint+"/boot/loader/entries/linux-cachyos.conf", "title Linux Cachyos\noptions "+strings.Join(parameters, " ")+"\nlinux /vmlinuz-linux-cachyos\ninitrd /initramfs-linux-cachyos.img\n", "root", 0700)
|
||||||
}
|
}
|
||||||
|
|
||||||
const yay = `{
|
const yay = `{
|
||||||
|
|||||||
Reference in New Issue
Block a user