Bug#270550: Using d-i as rescue disk.
On Thu, Sep 09, 2004 at 02:53:10PM +0200, Sven Luther wrote:
> On Wed, Sep 08, 2004 at 04:43:43PM +0100, Colin Watson wrote:
> > On Wed, Sep 08, 2004 at 01:00:26PM +0100, Alex Owen wrote:
> > > In boot-floppies (bf) the bf kernel was installed in the target system. Is
> > > that the case in d-i ?
> > No, it's not.
> > > If the d-i kernel ins not installed on the target system then I think that
> > > the d-i boot floppy cannot have the "rescue" boot option that bf had as
> > > there will be no matching kernel modules in the root filesystem.
> > Most of the modules are available in the d-i environment, although you
> > need to run the appropriate "Load installer components from ..." stage
> > to get a lot of them. The standard procedure is to run the installer up
> > to the point where it starts the partitioner (by which point it still
> > hasn't written anything to the disks), then switch to tty2, mount your
> > root filesystem on /target, and chroot.
> Maybe a installer option that would do just that would be a good idea. This
> way we could redo the rescue functionality of the old boot-floppies.
> Not sure if it is easily doable technically though.
It probably is, maybe a set of two .udebs which are placed just before partman
in priority. The first one would check for the presence of a certain boot
option (or cdebconf value set from the kernel command line) and drop into a
shell, while the second would simply halt the machine or something such.