• Re: Skipping disk erase on Debian text-based installation (fwd)

    From Nick Gawronski@21:1/5 to Samuel Thibault on Sun May 1 02:50:01 2022
    Hi, I had to reinstall debian and like to encrypt my installations.  Regardless of what installation image I use I find that no choice exists
    to not do the complete wiping of the disk before the LVM manager is
    setup.  I get that it will be possible to press control and c to stop
    the process but having an option like a choice in the last step asking
    if you wish to do this complete wipe would be better.  If the system was already encrypted and all you were doing was doing a reinstallation then
    going threw that process again to     me is pointless.  Is this
    something that could possibly be looked at for a future release? Nick
    Gawronski

    On 11/17/2021 3:34 PM, Samuel Thibault wrote:
    john doe, le mer. 17 nov. 2021 21:58:00 +0100, a ecrit:
    Unless I'm missing something, one could preseed this question as kernel
    boot parameter:

    # When disk encryption is enabled, skip wiping the partitions beforehand.
    #d-i partman-auto-crypto/erase_disks boolean false
    Yes, but that's way easier to just interrupt the step than finding out
    how to preseed a parameter

    Samuel


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Schoepplein@21:1/5 to All on Sun May 1 11:30:02 2022
    Hi,


    Am 01.05.2022 um 02:04 schrieb Nick Gawronski <nick@nickgawronski.com>:
    Hi, I had to reinstall debian and like to encrypt my installations. Regardless of what installation image I use I find that no choice exists to not do the complete wiping of the disk before the LVM manager is setup. I get that it will be possible to
    press control and c to stop the process but having an option like a choice in the last step asking if you wish to do this complete wipe would be better. If the system was already encrypted and all you were doing was doing a reinstallation then going
    threw that process again to me is pointless. Is this something that could possibly be looked at for a future release?

    I’ve installed Debian with a crypted LVM a few times during the last two months with braille support and I was able to cancel the wiping process of the harddisk during installation without a problem. Do not know how it is when installation is done with
    speech support only.

    Cheers,

    Schoepp

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Philip Hands@21:1/5 to Nick Gawronski on Sun May 1 13:00:02 2022
    Nick Gawronski <nick@nickgawronski.com> writes:

    Hi, I had to reinstall debian and like to encrypt my installations.  Regardless of what installation image I use I find that no choice exists
    to not do the complete wiping of the disk before the LVM manager is
    setup.  I get that it will be possible to press control and c to stop
    the process but having an option like a choice in the last step asking
    if you wish to do this complete wipe would be better.  If the system was already encrypted and all you were doing was doing a reinstallation then going threw that process again to     me is pointless.  Is this something that could possibly be looked at for a future release? Nick Gawronski

    If you're doing an interactive install, the expectation is that you
    cancel it if you don't want to wait for it, since that seems the way to
    ensure that people that don't know what they're doing still get a safe
    result.

    It's been possible to override this via preseeding (since 2017[1]),
    either in a preseed.cfg, thus:

    d-i partman-auto-crypto/erase_disks boolean false

    or on the kernel command line:

    partman-auto-crypto/erase_disks=false

    which you could do in an otherwise interactive install, if that's what
    you wanted.

    For more such preseeding hints, check out the example preseed.cfg:

    https://d-i.debian.org/manual/example-preseed.txt

    which is linked to from here:

    https://d-i.debian.org/manual/en.amd64/apbs02.html

    HTH

    Cheers, Phil.

    [1] https://bugs.debian.org/476388
    --
    |)| 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

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3/FBWs4yJ/zyBwfW0EujoAEl1cAFAmJuZtcACgkQ0EujoAEl 1cC9jBAAkJNfXBF/oElj0/Z6WbDlDxekRUSpwAhlQsujVeL4B5pZeMHrIVbvWn// BVOtcAa8ZLSfJ9UY2SRISMTHD/BMBCnwWTRG+dKbm1sn4/3wdFbyG/EwnfXoMIAg M0fMakFqJvn08g55Q7gp4b9VHgYLn8VX0rkGIyZS2O1taysKOt8T4bF2lba9V/k8 Gj02/eA96EiRUm0rqt06oJus++txLXnY9vrNsXyK5v9y6Kn+SxYFMiebZOtyz/sV u89D/g+jAZoOI3AN8TWbfmdGZeixlMI7BH5lHGPhM5jbmvrx0PSsoiG7E6sNIrx3 p31886wq5VVK13IeIryEU1c5L4OXd6K5KVr2SluWkmmMffNOimKKFGgWkpWKKmAQ Ytn5R80iUb/3vMUYX6UagHSCu7w/K7sowZVBEamRmLAVaXhqkTgXlOWvdHpFeatC eRWLKymAUwdwyCRb3OdE57rLo2WRPcNda9jaTtGeYFnA+VEkHkdQtj5A0ajvl4/i VFb0laj4r4mtgOVL2ptyxrGSve/IPbFm2BjH9MSvq8romDhQ9L/FJWjKPVlkc9BY i8oMLnLyPuRlrKPuzzy20kNZ0/vX9I4Sk7hJNm7hoCwhUZHn353nt+GdtcupC3X6 qhn57coR8Ug+QLq
  • From Nick Gawronski@21:1/5 to Philip Hands on Mon May 2 00:40:01 2022
    Hi, I am totally blind and use the s option at boot to start the
    installer with speech output.  If I wish to add this kernel command line option yet still run the installation using software speech output would pressing s then tab and then entering in the command line switches then pressing enter work as control and c does not do the canceling operation
    like it should and I had to wait until the entire disk was wiped?  Nick Gawronski

    On 5/1/2022 5:54 AM, Philip Hands wrote:
    Nick Gawronski <nick@nickgawronski.com> writes:

    Hi, I had to reinstall debian and like to encrypt my installations.
    Regardless of what installation image I use I find that no choice exists
    to not do the complete wiping of the disk before the LVM manager is
    setup.  I get that it will be possible to press control and c to stop
    the process but having an option like a choice in the last step asking
    if you wish to do this complete wipe would be better.  If the system was
    already encrypted and all you were doing was doing a reinstallation then
    going threw that process again to     me is pointless.  Is this
    something that could possibly be looked at for a future release? Nick
    Gawronski
    If you're doing an interactive install, the expectation is that you
    cancel it if you don't want to wait for it, since that seems the way to ensure that people that don't know what they're doing still get a safe result.

    It's been possible to override this via preseeding (since 2017[1]),
    either in a preseed.cfg, thus:

    d-i partman-auto-crypto/erase_disks boolean false

    or on the kernel command line:

    partman-auto-crypto/erase_disks=false

    which you could do in an otherwise interactive install, if that's what
    you wanted.

    For more such preseeding hints, check out the example preseed.cfg:

    https://d-i.debian.org/manual/example-preseed.txt

    which is linked to from here:

    https://d-i.debian.org/manual/en.amd64/apbs02.html

    HTH

    Cheers, Phil.

    [1] https://bugs.debian.org/476388

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Wansing@21:1/5 to Nick Gawronski on Mon May 2 14:00:01 2022
    Hi Nick,

    Nick Gawronski <nick@nickgawronski.com> wrote (Sun, 1 May 2022 17:19:48 -0500):
    Hi, I am totally blind and use the s option at boot to start the
    installer with speech output.  If I wish to add this kernel command line option yet still run the installation using software speech output would pressing s then tab and then entering in the command line switches then pressing enter work as control and c does not do the canceling operation like it should and I had to wait until the entire disk was wiped? 

    yes, typing in the commandline switch should work as you described.
    But be aware, that the installer uses a qwerty (english) keyboard layout
    in that stage. That might be tricky, if you use another layout usually (especially because you need to type some special symbols as well, not only alphabetical characters).

    And I have tested it, it works as described, the full disk wipe is skipped automatically then.

    Another comment:
    Nick is right, if you perform an install with speech output, there is no interactive possibility to cancel the full disk wipe action in the text frontend used for speech!
    In the newt frontend or graphical installer there is the Cancel button,
    but not in the text frontend, sadly.


    Regards
    Holger




    On 5/1/2022 5:54 AM, Philip Hands wrote:
    Nick Gawronski <nick@nickgawronski.com> writes:

    Hi, I had to reinstall debian and like to encrypt my installations.
    Regardless of what installation image I use I find that no choice exists >> to not do the complete wiping of the disk before the LVM manager is
    setup.  I get that it will be possible to press control and c to stop
    the process but having an option like a choice in the last step asking
    if you wish to do this complete wipe would be better.  If the system was >> already encrypted and all you were doing was doing a reinstallation then >> going threw that process again to     me is pointless.  Is this
    something that could possibly be looked at for a future release? Nick
    Gawronski
    If you're doing an interactive install, the expectation is that you
    cancel it if you don't want to wait for it, since that seems the way to ensure that people that don't know what they're doing still get a safe result.

    It's been possible to override this via preseeding (since 2017[1]),
    either in a preseed.cfg, thus:

    d-i partman-auto-crypto/erase_disks boolean false

    or on the kernel command line:

    partman-auto-crypto/erase_disks=false

    which you could do in an otherwise interactive install, if that's what
    you wanted.

    For more such preseeding hints, check out the example preseed.cfg:

    https://d-i.debian.org/manual/example-preseed.txt

    which is linked to from here:

    https://d-i.debian.org/manual/en.amd64/apbs02.html

    HTH

    Cheers, Phil.

    [1] https://bugs.debian.org/476388



    --
    Holger Wansing <hwansing@mailbox.org>
    PGP-Fingerprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Mon May 2 14:00:01 2022
    Holger Wansing, le lun. 02 mai 2022 13:52:36 +0200, a ecrit:
    Nick is right, if you perform an install with speech output, there is no interactive possibility to cancel the full disk wipe action in the text frontend used for speech!
    In the newt frontend or graphical installer there is the Cancel button,
    but not in the text frontend, sadly.

    That was fixed in cdebconf 0.261, one can just press control-C.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Wansing@21:1/5 to All on Mon May 2 14:40:01 2022
    Am 2. Mai 2022 13:58:54 MESZ schrieb Samuel Thibault <sthibault@debian.org>: >Holger Wansing, le lun. 02 mai 2022 13:52:36 +0200, a ecrit:
    Nick is right, if you perform an install with speech output, there is no
    interactive possibility to cancel the full disk wipe action in the text
    frontend used for speech!
    In the newt frontend or graphical installer there is the Cancel button,
    but not in the text frontend, sadly.

    That was fixed in cdebconf 0.261, one can just press control-C.

    Uups.
    Yes, I used an outdated image for testing, my bad...


    Holger

    --
    Sent from /e/ OS on Fairphone3

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nick Gawronski@21:1/5 to Holger Wansing on Mon May 2 16:00:01 2022
    Hi, I think that some type of message should be written in the installer
    that is used with speech telling the user that if you don't need to wipe
    the disk like if it is already encrypted then you can press control and
    c to abort the process so that the message is clear and so that it is
    known to the user that they don't have to wait until the entire wiping
    process is completed if they don't want to.  Nick Gawronski

    On 5/2/2022 7:39 AM, Holger Wansing wrote:

    Am 2. Mai 2022 13:58:54 MESZ schrieb Samuel Thibault <sthibault@debian.org>:
    Holger Wansing, le lun. 02 mai 2022 13:52:36 +0200, a ecrit:
    Nick is right, if you perform an install with speech output, there is no >>> interactive possibility to cancel the full disk wipe action in the text
    frontend used for speech!
    In the newt frontend or graphical installer there is the Cancel button,
    but not in the text frontend, sadly.
    That was fixed in cdebconf 0.261, one can just press control-C.
    Uups.
    Yes, I used an outdated image for testing, my bad...


    Holger


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)