You are not logged in.

#1 2018-01-21 13:58:03

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Rescue mode for ISO image

I discovered yesterday that the upstream Debian stretch ISO image has a rather lovely "Rescue" mode available:

2018-01-20-200827_1280x800_scrot.th.png

This allows for re-installation of GRUB and the opening of a rescue shell in a given target filesystem, which is very useful.

It turns out that adding this option to BunsenLabs is very easy, here is an ISO with a "Rescue mode" boot menu entry:

https://drive.google.com/open?id=1Nieus … ioF03UraRl

sha512sum:

71bb01316dbc6a3d2713191ea60db526a705fa848772a1de449c12e493a28e345f10b920ff43b8d30c8a98b1a690b9c0e15d9dd6a5274d235a82c1acfac556e5

To do this, I edited the file at boot/grub/grub.cfg (used for UEFI systems) and added these stanzas:

menuentry "Rescue mode" {
	linux	/install/vmlinuz vga=788 rescue/enable=true quiet
	initrd	/install/initrd.gz
}
menuentry "Rescue mode (GUI)" {
	linux	/install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=788 rescue/enable=true quiet
	initrd	/install/gtk/initrd.gz
}

And also changed isolinux/menu.cfg and added this line:

include rescue.cfg

With isolinux/rescue.cfg:

label rescue
	menu label ^Rescue mode
	kernel /install/vmlinuz
	initrd /install/initrd.gz
	append vga=788 rescue/enable=true --- quiet
label rescue-gui
	menu label ^Rescue mode (GUI)
	kernel /install/gtk/vmlinuz
	initrd /install/gtk/initrd.gz
	append vga=788 rescue/enable=true --- quiet

Those files are used by the non-UEFI bootloader.

Offline

#2 2018-01-22 03:00:22

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: Rescue mode for ISO image

Good find!

I'll incorporate your code in the first alpha Helium iso, and we can test it out. cool
(added to the live-build to-do list)

Last edited by johnraff (2018-01-22 03:02:06)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB