Re: Possible to force installing from the mirror instead of the installation media?

2022-02-21 Thread Glen Huang
@Geert > It is "netinst" that you are looking for. I am using netinst. Appreciate the detailed steps listed, but with all due respect, my question was about how to make the installer install the base system from the mirror and not the installation media. The listed steps don't seem to help with

Re: Would allowing preseed to be a tarball a good idea?

2022-02-20 Thread Glen Huang
The installer already supports tar (via busybox) if I'm not mistaken. Regards, Glen

Possible to force installing from the mirror instead of the installation media?

2022-02-20 Thread Glen Huang
Hi, I remember reading it somewhere in a Debian doc (though I can no longer find it) that only netboot automatically installs the base system from a mirror, other media install from the media itself and then upgrade via the mirror if allowed. I wonder if it's possible to force the installer to

Re: Would allowing preseed to be a tarball a good idea?

2022-02-20 Thread Glen Huang
On Fri, Feb 18, 2022 at 10:32 PM Geert Stappers wrote: > > On Fri, Feb 18, 2022 at 03:55:30PM +0800, Glen Huang wrote: >> On Feb 18, 2022, at 4:48 AM, Geert Stappers wrote: >>>> On Feb 16, 2022, at 5:50 PM, Geert Stappers wrote: >>>>> >>>>&g

Re: Would allowing preseed to be a tarball a good idea?

2022-02-17 Thread Glen Huang
On Feb 18, 2022, at 4:48 AM, Geert Stappers wrote: > >>> On Feb 16, 2022, at 5:50 PM, Geert Stappers wrote: >>> >>> The initrd of d-i can indeed be extended / appended. >>> And in the "appendix" goes the desired extras. Then >>> >>> d-i preseed/early_commands /myextras/early_script >> >>

Re: Would allowing preseed to be a tarball a good idea?

2022-02-16 Thread Glen Huang
@Philip > On Feb 16, 2022, at 5:48 PM, Philip Hands wrote: > > Glen Huang writes: > >> Hi, >> >> Currently, the preseed file needs to be a text file. I find it to be a >> bit limiting, especially if you want to do some non-trivial scripting >> in e

Re: Would allowing preseed to be a tarball a good idea?

2022-02-16 Thread Glen Huang
them, there is no guarantee that (future versions of) d-i won’t touch them. 3. The tarball should contain a /preseed file to provide the preseed. Regards, Glen > On Feb 16, 2022, at 5:19 PM, Glen Huang wrote: > > Hi, > > Currently, the preseed file needs to be a te

Would allowing preseed to be a tarball a good idea?

2022-02-16 Thread Glen Huang
Hi, Currently, the preseed file needs to be a text file. I find it to be a bit limiting, especially if you want to do some non-trivial scripting in either early_command or late_command (let's call them runners). There are basically four options to address it AFAIK: 1. Strictly use one-liners

Re: Unable to set root password with clear text using preseed/early_command

2022-02-16 Thread Glen Huang
Setting a placeholder value is a great idea, it simplifies the early_command since the seen flag no longer needs to be set. Thanks for the tip Philip. > On Feb 16, 2022, at 4:38 PM, Philip Hands wrote: > > Glen Huang writes: > >> Thanks to Cyril Brulebois’s ti

Re: Unable to set root password with clear text using preseed/early_command

2022-02-15 Thread Glen Huang
Thanks to Cyril Brulebois’s tip that I could use DEBCONF_DEBUG to debug debconf, I found out the seen flag should be set in order for db_input to pick up the value. Case solved, thanks to everyone helped! > On Feb 16, 2022, at 9:52 AM, Glen Huang wrote: > > Thanks for the tip.

Re: Unable to set root password with clear text using preseed/early_command

2022-02-15 Thread Glen Huang
sword type. > On Feb 16, 2022, at 6:01 AM, Geert Stappers wrote: > > On Tue, Feb 15, 2022 at 08:08:08PM +0800, Glen Huang wrote: >> Hi, >> >> I want to set the root password to a random string. this is the preseed I >> use: >> >> d-i preseed/e

Unable to set root password with clear text using preseed/early_command

2022-02-15 Thread Glen Huang
Hi, I want to set the root password to a random string. this is the preseed I use: d-i preseed/early_command string \ pw="$(tr -dc A-Za-z0-9 ' Directly setting the password also works: d-i passwd/root-password password r00tme d-i passwd/root-password-again password r00tme >From