From 9558ac9d8063716647789047bf97d49e4cca131b Mon Sep 17 00:00:00 2001 From: brent s Date: Wed, 20 Jan 2021 21:24:49 -0500 Subject: [PATCH] i think i might have something that works here... --- _base.py | 4 ++-- tpl/sysresccd_grub.conf.j2 | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/_base.py b/_base.py index 7aca0b7..1288936 100644 --- a/_base.py +++ b/_base.py @@ -60,8 +60,8 @@ class BaseUpdater(object): self.old_hash)): self.do_update = True self.download() - if self.do_grub: - self.grub() + if self.do_grub: + self.grub() self.touchVer() self.unlock() return(None) diff --git a/tpl/sysresccd_grub.conf.j2 b/tpl/sysresccd_grub.conf.j2 index 5a2f3c4..522a702 100644 --- a/tpl/sysresccd_grub.conf.j2 +++ b/tpl/sysresccd_grub.conf.j2 @@ -17,8 +17,7 @@ submenu 'System Rescue CD' { insmod loopback search --no-floppy --fs-uuid {{ disk_uuid }} --set=root set isofile='{{ iso_path }}' - probe -u ${root} --set=imgdevuuid - set imgdevpath="/dev/disk/by-uuid/${imgdevuuid}" + set imgdevpath="/dev/disk/by-uuid/{{ disk_uuid }}" loopback loop (${root})/${isofile} linux (loop)/sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd img_dev=${imgdevpath} img_loop=${isofile} earlymodules=loop initrd (loop)/sysresccd/boot/intel_ucode.img (loop)/sysresccd/boot/amd_ucode.img (loop)/sysresccd/boot/x86_64/sysresccd.img