Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include support for rescuezilla #126

Open
caston1981 opened this issue Apr 26, 2024 · 0 comments
Open

Include support for rescuezilla #126

caston1981 opened this issue Apr 26, 2024 · 0 comments

Comments

@caston1981
Copy link

caston1981 commented Apr 26, 2024

I created a inc-rescuezilla.cfg for Rescuezilla
I based on the nixos example using loopback.cfg given by thias.

# Rescuezilla
function add_menu_rescuezilla {
isofile="$1"

regexp
--set 1:isoname
--set 2:version
--set 3:arch
"^${isopath}/rescuezilla/rescuezilla-([0-9.]+)-([^-]+).iso"$ "${isofile}"

menuentry "Rescuezilla Live ${version} ${arch}" "${isofile}" "${isoname}" --class rescuezilla {
set isofile=$2
set isoname=$3
use "${isoname}"
loop $isofile
# Change root might not be necessary, depending on Rescuezilla's boot process
change_root (loop)
set iso_path=$isofile
export iso_path
# Point to the actual loopback configuration file for Rescuezilla (if it exists)
configfile /boot/grub/loopback.cfg
# Restore root might not be necessary
restore_root
}
}

for_each_sorted add_menu_rescuezilla "$isopath"/rescuezilla/rescuezilla-*.iso

To grub.cfg I have added:

if any_exists ${isopath}/rescuezilla/rescuezilla*.iso; then
menuentry "Rescuezilla >" --class rescuezilla {
configfile "${prefix}/inc-rescuezilla.cfg"
}
fi

I rebuilt the USB and have it working. I did have some issue with files being overwritten when running the script but I have things going now.

I also had to add an entry in the README.md file so it would create a folder for the iso when running the script:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant