1
0

fix: workaround for grub-install issues

This commit is contained in:
dump_stack() 2023-05-22 06:55:06 +00:00
parent c076db3505
commit e1dd7c18be
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -89,6 +89,13 @@ func Runs(km config.Target) (commands []string) {
cmdf("apt-get install -y build-essential libelf-dev") cmdf("apt-get install -y build-essential libelf-dev")
cmdf("apt-get install -y wget git") cmdf("apt-get install -y wget git")
if km.Distro.Release == "12.04" {
cmdf("apt-get install -y grub")
cmdf("cp /bin/true /usr/sbin/grub-probe")
cmdf("mkdir -p /boot/grub")
cmdf("touch /boot/grub/menu.lst")
}
if km.Distro.Release < "14.04" { if km.Distro.Release < "14.04" {
return return
} }