[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#901332: d-i: Offer to shut down / power off instead of reboot at the end



Thorsten Glaser <tg@mirbsd.de> writes:

> Hi Phil,
>
>>BTW one can preseed this behaviour with 'debian-installer/exit/halt' or
>>'debian-installer/exit/poweroff' as mentioned here:
>>
>>  https://www.debian.org/releases/stable/amd64/apbs04.en.html#preseed-finish
>
> oh, good to know.
>
>>which means that you could specify such a setting on the kernel command
>>line when starting debian-installer to get the behaviour you want.
>
> I’m not versed in preseeding… so that means I have to write
> debian-installer/exit/poweroff=true to the kernel commandline?

That's right.

> Wow, quite a handful to type (but on the plus side, it can be
> added to netboot menus right now, no further change needed, so
> it solves half the problem ☺).

We could come up with an alias to make that shorter at the commandline,
although it would perhaps be better the have a new setting that would be
a select between reboot, halt, and poweroff.

Then we could use that for asking the question at the end of the install
and also alias that to allow typing something like this at the kernel
commandline:

  finally=poweroff

Since I'm just putting together a DC21 talk about branch2repo, I thought
I'd use this bug as a demo, so here's something that does what the bug
is asking for:

  https://salsa.debian.org/philh/finish-install/-/tree/bug/901332

which produces this result:

  https://openqa.debian.net/tests/16851#step/complete_install/2

Once salsa stops being grumpy (it's momentarily unable to pull docker
images it seems) I'll try adding a new preseed_alias to test that idea.

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/    http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,    GERMANY


Reply to: