Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #209806 > unrolled thread
| Started by | john doe <johndoe65534@mail.com> |
|---|---|
| First post | 2019-06-10 20:30 +0200 |
| Last post | 2019-06-11 19:50 +0200 |
| Articles | 8 — 4 participants |
Back to article view | Back to linux.debian.user
Preseed file and hostname not used on installed system john doe <johndoe65534@mail.com> - 2019-06-10 20:30 +0200
Re: Preseed file and hostname not used on installed system john doe <johndoe65534@mail.com> - 2019-06-11 18:30 +0200
Re: Preseed file and hostname not used on installed system Jude DaShiell <jdashiel@panix.com> - 2019-06-11 19:40 +0200
Re: Preseed file and hostname not used on installed system Brian <ad44@cityscape.co.uk> - 2019-06-11 19:50 +0200
Re: Preseed file and hostname not used on installed system john doe <johndoe65534@mail.com> - 2019-06-12 11:20 +0200
Re: Preseed file and hostname not used on installed system Brian <ad44@cityscape.co.uk> - 2019-06-12 13:40 +0200
Re: Preseed file and hostname not used on installed system john doe <johndoe65534@mail.com> - 2019-06-12 16:10 +0200
Re: Preseed file and hostname not used on installed system Curt <curty@free.fr> - 2019-06-11 19:50 +0200
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2019-06-10 20:30 +0200 |
| Subject | Preseed file and hostname not used on installed system |
| Message-ID | <y7xdo-Bv-7@gated-at.bofh.it> |
Hi, I'm installing Debian Stretch using a preseed file, the preseed file is common for multiple hosts with the exception of the hostname. boot: auto hostname=try domain=example.com ... url=tftp://hostname/preseed.cfg The host name specified is not used when Debian is installed, it is always set to 'bad'. I understand the limitations but what is the proper way to specify the desired hostname or are workarounds (1) the way to go? Any help/hints is appriciated. https://unix.stackexchange.com/questions/106614/preseed-cfg-ignoring-hostname-setting -- John Doe
[toc] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2019-06-11 18:30 +0200 |
| Message-ID | <y7ROO-4pA-23@gated-at.bofh.it> |
| In reply to | #209806 |
On 6/10/2019 8:24 PM, john doe wrote: > Hi, I'm installing Debian Stretch using a preseed file, the preseed file > is common for multiple hosts with the exception of the hostname. > > boot: auto hostname=try domain=example.com ... > url=tftp://hostname/preseed.cfg > > The host name specified is not used when Debian is installed, it is > always set to 'bad'. > > I understand the limitations but what is the proper way to specify the > desired hostname or are workarounds (1) the way to go? > > Any help/hints is appriciated. > > > https://unix.stackexchange.com/questions/106614/preseed-cfg-ignoring-hostname-setting > After some digging/testing I'm not able to supply by kernel boot parameter the hostname: boot: auto hostname=foobar url=... From what I understand, 'hostname' as kernel boot parameter takes precedence over the hostname provided by dhcp. It is miserably failing and I don't understand what I'm missing here? In other words, how can I set the hostname while using a preseed file loaded with 'auto url=server'. Any input is welcome. -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | Jude DaShiell <jdashiel@panix.com> |
|---|---|
| Date | 2019-06-11 19:40 +0200 |
| Message-ID | <y7SUx-520-7@gated-at.bofh.it> |
| In reply to | #209816 |
I never tried using a debian preseed.cfg file, but I thought there were some post-install commands that could get issued. Maybe using one of these is how you can set hostname. On Tue, 11 Jun 2019, john doe wrote: > Date: Tue, 11 Jun 2019 12:25:47 > From: john doe <johndoe65534@mail.com> > To: debian-user@lists.debian.org > Subject: Re: Preseed file and hostname not used on installed system > Resent-Date: Tue, 11 Jun 2019 16:26:06 +0000 (UTC) > Resent-From: debian-user@lists.debian.org > > On 6/10/2019 8:24 PM, john doe wrote: > > Hi, I'm installing Debian Stretch using a preseed file, the preseed file > > is common for multiple hosts with the exception of the hostname. > > > > boot: auto hostname=try domain=example.com ... > > url=tftp://hostname/preseed.cfg > > > > The host name specified is not used when Debian is installed, it is > > always set to 'bad'. > > > > I understand the limitations but what is the proper way to specify the > > desired hostname or are workarounds (1) the way to go? > > > > Any help/hints is appriciated. > > > > > > https://unix.stackexchange.com/questions/106614/preseed-cfg-ignoring-hostname-setting > > > > After some digging/testing I'm not able to supply by kernel boot > parameter the hostname: > > boot: auto hostname=foobar url=... > > From what I understand, 'hostname' as kernel boot parameter takes > precedence over the hostname provided by dhcp. > > > It is miserably failing and I don't understand what I'm missing here? > > > In other words, how can I set the hostname while using a preseed file > loaded with 'auto url=server'. > > Any input is welcome. > > -- > John Doe > > --
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2019-06-11 19:50 +0200 |
| Message-ID | <y7T4d-55m-1@gated-at.bofh.it> |
| In reply to | #209816 |
On Tue 11 Jun 2019 at 18:25:47 +0200, john doe wrote: > On 6/10/2019 8:24 PM, john doe wrote: > > Hi, I'm installing Debian Stretch using a preseed file, the preseed file > > is common for multiple hosts with the exception of the hostname. > > > > boot: auto hostname=try domain=example.com ... > > url=tftp://hostname/preseed.cfg > > > > The host name specified is not used when Debian is installed, it is > > always set to 'bad'. > > > > I understand the limitations but what is the proper way to specify the > > desired hostname or are workarounds (1) the way to go? > > > > Any help/hints is appriciated. > > > > > > https://unix.stackexchange.com/questions/106614/preseed-cfg-ignoring-hostname-setting > > > > After some digging/testing I'm not able to supply by kernel boot > parameter the hostname: > > boot: auto hostname=foobar url=... > > From what I understand, 'hostname' as kernel boot parameter takes > precedence over the hostname provided by dhcp. The notes in my preseed.cfg say this is not so if the file is presented to the installer on a GRUB command line. What works is to have nothing about hostname in preseed.cfg but put "hostname=..." on the command line. -- Brian.
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2019-06-12 11:20 +0200 |
| Message-ID | <y87Ad-5yp-7@gated-at.bofh.it> |
| In reply to | #209819 |
On 6/11/2019 7:44 PM, Brian wrote: > On Tue 11 Jun 2019 at 18:25:47 +0200, john doe wrote: > >> On 6/10/2019 8:24 PM, john doe wrote: >>> Hi, I'm installing Debian Stretch using a preseed file, the preseed file >>> is common for multiple hosts with the exception of the hostname. >>> >>> boot: auto hostname=try domain=example.com ... >>> url=tftp://hostname/preseed.cfg >>> >>> The host name specified is not used when Debian is installed, it is >>> always set to 'bad'. >>> >>> I understand the limitations but what is the proper way to specify the >>> desired hostname or are workarounds (1) the way to go? >>> >>> Any help/hints is appriciated. >>> >>> >>> https://unix.stackexchange.com/questions/106614/preseed-cfg-ignoring-hostname-setting >>> >> >> After some digging/testing I'm not able to supply by kernel boot >> parameter the hostname: >> >> boot: auto hostname=foobar url=... >> >> From what I understand, 'hostname' as kernel boot parameter takes >> precedence over the hostname provided by dhcp. > > The notes in my preseed.cfg say this is not so if the file is presented > to the installer on a GRUB command line. What works is to have nothing > about hostname in preseed.cfg but put "hostname=..." on the command > line. > Can you share those notes or which notes are you refering to in (1)? https://www.debian.org/releases/stretch/example-preseed.txt -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2019-06-12 13:40 +0200 |
| Message-ID | <y89LH-6LP-1@gated-at.bofh.it> |
| In reply to | #209833 |
On Wed 12 Jun 2019 at 11:12:45 +0200, john doe wrote: > On 6/11/2019 7:44 PM, Brian wrote: > > On Tue 11 Jun 2019 at 18:25:47 +0200, john doe wrote: > > > >> On 6/10/2019 8:24 PM, john doe wrote: > >>> Hi, I'm installing Debian Stretch using a preseed file, the preseed file > >>> is common for multiple hosts with the exception of the hostname. > >>> > >>> boot: auto hostname=try domain=example.com ... > >>> url=tftp://hostname/preseed.cfg > >>> > >>> The host name specified is not used when Debian is installed, it is > >>> always set to 'bad'. > >>> > >>> I understand the limitations but what is the proper way to specify the > >>> desired hostname or are workarounds (1) the way to go? > >>> > >>> Any help/hints is appriciated. > >>> > >>> > >>> https://unix.stackexchange.com/questions/106614/preseed-cfg-ignoring-hostname-setting > >>> > >> > >> After some digging/testing I'm not able to supply by kernel boot > >> parameter the hostname: > >> > >> boot: auto hostname=foobar url=... > >> > >> From what I understand, 'hostname' as kernel boot parameter takes > >> precedence over the hostname provided by dhcp. > > > > The notes in my preseed.cfg say this is not so if the file is presented > > to the installer on a GRUB command line. What works is to have nothing > > about hostname in preseed.cfg but put "hostname=..." on the command > > line. > > > > Can you share those notes or which notes are you refering to in (1)? > > https://www.debian.org/releases/stretch/example-preseed.txt These notes are just comments I have made myself in preseed.cfg. # This sets the hostname for the system; it ignores names provided by # DHCP or DNS. 'hostname=' on the command line of the installer does # not override it. Comment out the next line to use 'hostname='. d-i netcfg/hostname string stretch
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2019-06-12 16:10 +0200 |
| Message-ID | <y8c6R-8in-9@gated-at.bofh.it> |
| In reply to | #209839 |
On 6/12/2019 1:38 PM, Brian wrote: > On Wed 12 Jun 2019 at 11:12:45 +0200, john doe wrote: > >> On 6/11/2019 7:44 PM, Brian wrote: >>> On Tue 11 Jun 2019 at 18:25:47 +0200, john doe wrote: >>> >>>> On 6/10/2019 8:24 PM, john doe wrote: >>>>> Hi, I'm installing Debian Stretch using a preseed file, the preseed file >>>>> is common for multiple hosts with the exception of the hostname. >>>>> >>>>> boot: auto hostname=try domain=example.com ... >>>>> url=tftp://hostname/preseed.cfg >>>>> >>>>> The host name specified is not used when Debian is installed, it is >>>>> always set to 'bad'. >>>>> >>>>> I understand the limitations but what is the proper way to specify the >>>>> desired hostname or are workarounds (1) the way to go? >>>>> >>>>> Any help/hints is appriciated. >>>>> >>>>> >>>>> https://unix.stackexchange.com/questions/106614/preseed-cfg-ignoring-hostname-setting >>>>> >>>> >>>> After some digging/testing I'm not able to supply by kernel boot >>>> parameter the hostname: >>>> >>>> boot: auto hostname=foobar url=... >>>> >>>> From what I understand, 'hostname' as kernel boot parameter takes >>>> precedence over the hostname provided by dhcp. >>> >>> The notes in my preseed.cfg say this is not so if the file is presented >>> to the installer on a GRUB command line. What works is to have nothing >>> about hostname in preseed.cfg but put "hostname=..." on the command >>> line. >>> >> >> Can you share those notes or which notes are you refering to in (1)? >> >> https://www.debian.org/releases/stretch/example-preseed.txt > > These notes are just comments I have made myself in preseed.cfg. > > # This sets the hostname for the system; it ignores names provided by > # DHCP or DNS. 'hostname=' on the command line of the installer does > # not override it. Comment out the next line to use 'hostname='. > d-i netcfg/hostname string stretch > Actually, this line is already commented out in my preseed file! With this same file passing 'hostname' and 'domaine' as kernel boot parameters works when installing Stretch in a VM. I'm still missing something here but I need to move on. My thanks goes to you Brian and also to Curt and Jude. -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2019-06-11 19:50 +0200 |
| Message-ID | <y7T4d-55m-3@gated-at.bofh.it> |
| In reply to | #209816 |
On 2019-06-11, john doe <johndoe65534@mail.com> wrote: > > In other words, how can I set the hostname while using a preseed file > loaded with 'auto url=server'. > > Any input is welcome. Maybe this bug report (patch from canonical at bottom) will be of help (although the patch checks for netcfg/hostname in the preseed at post-install time and proceeds from there, a method that I believe was alluded to by Jude). https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755848 > -- > John Doe > > -- “Decisions are never really made – at best they manage to emerge, from a chaos of peeves, whims, hallucinations and all around assholery.” – Thomas Pynchon
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web