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

2021-08-02 Thread Philip Hands
Thorsten Glaser  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



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

2021-08-01 Thread Thorsten Glaser
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?

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 ☺).

Thanks,
//mirabilos
-- 
Gestern Nacht ist mein IRC-Netzwerk explodiert. Ich hatte nicht damit
gerechnet, darum bin ich blutverschmiert… wer konnte ahnen, daß SIE so
reagier’n… gestern Nacht ist mein IRC-Netzwerk explodiert~~~
(as of 2021-06-15 The MirOS Project temporarily reconvenes on OFTC)



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

2021-08-01 Thread Philip Hands
Thorsten Glaser  writes:

> Package: debian-installer
> Followup-For: Bug #901332
> X-Debbugs-Cc: t...@mirbsd.de
>
> Did anything ever come from this, now that we’re nearing a release?

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

which means that you could specify such a setting on the kernel command
line when starting debian-installer to get the behaviour you want.

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


signature.asc
Description: PGP signature


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

2021-07-31 Thread Cyril Brulebois
Thorsten Glaser  (2021-07-31):
> Did anything ever come from this, now that we’re nearing a release?

I'm not sure what you expect. If there had been progress, this would
have ended up in this bug report, wouldn't it?


Cheers,
-- 
Cyril Brulebois (k...@debian.org)
D-I release manager -- Release team member -- Freelance Consultant


signature.asc
Description: PGP signature


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

2021-07-31 Thread Thorsten Glaser
Package: debian-installer
Followup-For: Bug #901332
X-Debbugs-Cc: t...@mirbsd.de

Did anything ever come from this, now that we’re nearing a release?


-- System Information:
Debian Release: 11.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'stable-updates'), (500, 
'oldoldstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/2 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)


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

2018-06-13 Thread Rick Thomas


On Jun 12, 2018, at 8:56 PM, Ben Hutchings  wrote:

>> So, please, at the end, where it tells the reboot message, add
>> a third button that shuts down / powers off the system instead
>> of rebooting.
> 
> Still, I do agree that this would be useful in general.

Especially if it could be pre-seeded.

For example: Imagine setting up a bunch of machines all at once to be 
distributed to various locations after the install.  You can use pre-seeding to 
answer all the questions while you go off and get a cup of tea.  It might be 
better to have them all install then shutdown, rather than install then reboot 
— wasting power and requiring a manual shutdown before moving to the target 
location.

Rick


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

2018-06-13 Thread Thorsten Glaser
Ben Hutchings dixit:

>virt-manager (or maybe the underlying libvirt) seems to handle this:
>when you create a VM and provide an installation image, it is
>automatically detached when the VM reboots.

Indeed it does. However, virt-manager also insists on
automatically starting the VM, and I usually also change
something in their settings _before_ the installation,
so I can’t use that feature. (It does offer changing some
settings before initially starting the VM, but that doesn’t
have the final configuration, and is *extremely* laggy up
to unusable if libvirt runs on a different system than
virt-manager.) But…

>> So, please, at the end, where it tells the reboot message, add
>> a third button that shuts down / powers off the system instead
>> of rebooting.
>
>Still, I do agree that this would be useful in general.

… that, yes. In general, this is probably useful.

Thanks,
//mirabilos
-- 
  "Using Lynx is like wearing a really good pair of shades: cuts out
   the glare and harmful UV (ultra-vanity), and you feel so-o-o COOL."
 -- Henry Nelson, March 1999



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

2018-06-13 Thread Cyril Brulebois
Thorsten Glaser  (2018-06-11):
> So, please, at the end, where it tells the reboot message, add
> a third button that shuts down / powers off the system instead
> of rebooting.

For the sake of completeness, that's not about adding a third button,
that would be about turning an information note in finish-install into
something else:
| Template: finish-install/reboot_in_progress
| Type: note


Cheers,
-- 
Cyril Brulebois (k...@debian.org)
D-I release manager -- Release team member -- Freelance Consultant


signature.asc
Description: PGP signature


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

2018-06-12 Thread Ben Hutchings
On Mon, 2018-06-11 at 17:23 +0200, Thorsten Glaser wrote:
> Package: debian-installer
> Severity: normal
> 
> d-i always insists on rebooting at the end. This is made worse
> by it telling the user to change boot media, which, for virtual
> machines, means reconfiguring the VM.

virt-manager (or maybe the underlying libvirt) seems to handle this:
when you create a VM and provide an installation image, it is
automatically detached when the VM reboots.

> I *generally* wish to reconfigure the VM after first install
> *anyway*.
> 
> So, please, at the end, where it tells the reboot message, add
> a third button that shuts down / powers off the system instead
> of rebooting.

Still, I do agree that this would be useful in general.

Ben.

-- 
Ben Hutchings
The most exhausting thing in life is being insincere.
 - Anne Morrow Lindberg



signature.asc
Description: This is a digitally signed message part


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

2018-06-11 Thread Thorsten Glaser
Package: debian-installer
Severity: normal

d-i always insists on rebooting at the end. This is made worse
by it telling the user to change boot media, which, for virtual
machines, means reconfiguring the VM.

I *generally* wish to reconfigure the VM after first install
*anyway*.

So, please, at the end, where it tells the reboot message, add
a third button that shuts down / powers off the system instead
of rebooting.

Thanks in advance!

-- System Information:
Debian Release: buster/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable'), 
(100, 'experimental')
Architecture: x32 (x86_64)
Foreign Architectures: i386, amd64

Kernel: Linux 4.15.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)