** Tags removed: sts-sru-needed
** Tags added: sts-sru-done
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage notifications about
According to Eric's above comment, I've opened a new bug to track this
at - https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1745531
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
Joshua,
Could you also report another bug against preseed for this particular
case with this one as a reference ? With its own SRU justification tmpl,
It'll make sponsor and SRU team life easier to review.
- Eric
--
You received this bug notification because you are a member of Ubuntu
Bug
Joshua,
That look good to me.
So I would suggest:
1) Keep the if statement and add the -w option to grep to be more robust
2) Modify the sed cmd with word boundaries (\b) to be more robust as well.
Can you build preseed & "d-i" in your PPA to generate a mini.iso and test the
reproducer ?
If it
Hi Eric,
I think your proposal '-w' is good, so I will change to use:
if ! echo "$RET" | grep -qw 'ubuntu'; then
Mathieu,
How about using '/b' ? I mean using the following regex
/bin/sed -i "s/\b${CURRENT_HOSTNAME}\b/${NETCFG_HOSTNAME}/g" /etc/hosts
I have done some test below:
hua@t440p:~
IIUC,one of the goal mentioned by cyphermox here seems to avoid the grep
cmd to catch ubuntu pattern where hostname has ubuntu in it.
Example:
sometextbeforeubuntusometextafter
ubuntusometextafter
sometextbeforeubuntu
and only catch it when it is 'ubuntu' nothing else.
I think "-w" should suffic
I don't think I'd want to have the patches provided applied as-is. There
are multiple problems with them:
- The default hostname is 'ubuntu', and is the value you will get if
nothing is preseeded -- we *do* need to skip it in this case, although
the grep may need to be more precise. A name like 'u
** Also affects: debian-installer (Ubuntu Bionic)
Importance: Medium
Assignee: Eric Desrochers (slashd)
Status: Fix Released
** Also affects: preseed (Ubuntu Bionic)
Importance: Medium
Assignee: Eric Desrochers (slashd)
Status: Fix Released
--
You received this bug
Hi Joshua,
As discussed on irc, It would be best for Trusty to use the debdiff I
made found in LP: #1743787.
Otherwise, when the "d-i" rebuild will be needed to generate a new
mini.iso for instance, "d-i" will fail to build.
Everything is documented in the bug.
- Eric
--
You received this bug
Remove the debdiff for "d-i" for Trusty only and Eric will take care of
it in lp bug #1743787
** Attachment removed: "d-i_trusty.debdiff"
https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202/+attachment/5037278/+files/d-i_trusty.debdiff
** Patch removed: "d-i_trusty_v2.debdiff"
** Tags removed: sts-sru-done verification-done
** Tags added: sts-sru-needed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage n
** Patch added: "d-i_xenial_v2.debdiff"
https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202/+attachment/5042030/+files/d-i_xenial_v2.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs
** Patch added: "d-i_trusty_v2.debdiff"
https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202/+attachment/5042028/+files/d-i_trusty_v2.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs
** Patch added: "d-i_bionic_v2.debdiff"
https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202/+attachment/5042032/+files/d-i_bionic_v2.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs
** Patch added: "lp_1452202_bonic_v2.debdiff"
https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202/+attachment/5042031/+files/lp_1452202_bonic_v2.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launch
** Patch added: "lp_1452202_xenial_v2.debdiff"
https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202/+attachment/5042029/+files/lp_1452202_xenial_v2.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.laun
** Patch added: "lp_1452202_trusty_v2.debdiff"
https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202/+attachment/5042027/+files/lp_1452202_trusty_v2.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.laun
Hi Hua Zhang,
Just as an FYI...
A rebuild of "d-i" will be also required after your "preseed" SRU change
in order to generate a new Minimal image of Ubuntu (mini.iso).
Note that there is a "d-i" FTBTFS situation that will need to be fix for "d-i"
before the "d-i" rebuilt for the package to succ
Hi Hua Zhang,
Just as an FYI...
A rebuild of "d-i" will be also required after your "preseed" SRU change
in order to generate a new Minimal image of Ubuntu (mini.iso).
Note that there is a "d-i" FTBTFS situation that will need to be fix for
"d-i" before the "d-i" rebuilt for the package to succe
Hi Hua Zhang,
Just as an FYI...
A rebuild of "d-i" will be also required after your "preseed" SRU change
in order to generate a new Minimal image of Ubuntu (mini.iso).
Note that there is a "d-i" FTBTFS situation that will need to be fix for "d-i"
before the "d-i" rebuilt for the package to succ
The following regex is more better
/bin/sed -i
"/^[127|localhost]/s/${CURRENT_HOSTNAME}/${NETCFG_HOSTNAME}/g"
/etc/hosts
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed
I mean:
/usr/bin/awk '$1 ~ /^127|localhost/ {print $0}' /etc/hosts | /bin/sed
"s/\s*\(${CURRENT_HOSTNAME}\)\(\s*\)/\t${NETCFG_HOSTNAME}/g"
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
Maybe we can use the following regex instead, 'awk '$1 ~
/^127|localhost/ {print $0}'' is used to fix 'ff02::1 ip6-allnodes'
case, and add 'g' option to modifity all hostname.
$ hostname=ubuntu
$ echo '127.0.1.1 ubuntu.me.com ubuntu' |awk '$1 ~ /^127|localhost/ {print
$0}' |sed "s/\s*\(${hostna
I think Peter Wu is totally right.
In addition to above two problems, there is still another problem with
the patch that the present regular expression '/bin/sed -i
"s/$CURRENT_HOSTNAME/$NETCFG_HOSTNAME/" /etc/hosts' can't handle
multiple hostname case:
$ echo '127.0.1.1 ubuntu.me.com ubuntu'
See also the comments in
https://unix.stackexchange.com/questions/106614/preseed-cfg-ignoring-hostname-setting,
and in particular the reference to
http://d-i.alioth.debian.org/manual/en.i386/apbs04.html#preseed-network
The hostname is probably a very common case though.
I am currently using thi
There are two problems with the patch:
1. netcfg/hostname=ubuntu (or any value containing "ubuntu") remains unfixed.
2. Certain DHCP hostnames can result in corrupting the hosts file.
For example, with DHCP name "node" and "netcfg/hostname=newname" we have this
command:
/bin/sed -i "s/$CURRENT_HO
** Tags removed: sts-sru
** Tags added: sts-sru-done
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage notifications about this b
This bug was fixed in the package debian-installer - 20101020ubuntu451.9
---
debian-installer (20101020ubuntu451.9) xenial; urgency=medium
* Bump FLOPPY_SIZE by 2MB on amd64 and i386 for linux-firmware growth.
debian-installer (20101020ubuntu451.8) xenial; urgency=medium
* No ch
The patch has been tested a while ago, but the tag never been changed.
I change the tag to verification-done.
Thanks Adam for pointing this out.
Eric
** Tags removed: verification-needed
** Tags added: verification-done
--
You received this bug notification because you are a member of Ubuntu
Still waiting on someone to test the xenial debian-installer upload and
tell us that the bug is indeed fixed there.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed instal
Hello bugproxy, or anyone else affected,
Accepted debian-installer into xenial-proposed. The package will build
now and be available at https://launchpad.net/ubuntu/+source/debian-
installer/20101020ubuntu451.7 in a few hours, and then in the -proposed
repository.
Please help us by testing this n
This bug was fixed in the package preseed - 1.71ubuntu1.1
---
preseed (1.71ubuntu1.1) xenial; urgency=medium
* Fix for netcfg/hostname, if set, to take precedence. (LP: #1452202)
- Modify debian/network-preseed.postinst
-- Eric Desrochers Wed, 05 Oct 2016
12:01:39 -0400
**
This bug was fixed in the package preseed - 1.62ubuntu1.1
---
preseed (1.62ubuntu1.1) trusty; urgency=medium
* Fix for netcfg/hostname, if set, to take precedence. (LP: #1452202)
- Modify debian/network-preseed.postinst
-- Eric Desrochers Wed, 05 Oct 2016
11:58:53 -0400
**
This bug was fixed in the package debian-installer -
20101020ubuntu318.41
---
debian-installer (20101020ubuntu318.41) trusty; urgency=medium
* No change rebuild to pick up the latest change in preseed (LP:
#1452202)
-- Eric Desrochers Mon, 17 Oct 2016
17:29:25 -0400
--
You rec
** Tags removed: sts-sponsor
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage notifications about this bug go to:
https://bugs.l
The d-i debdiff contains no changes, it is only to allow the rebuild
(Daily ISO) to happen and to pick up the latest change in preseed
package.
Eric
** Tags removed: verification-needed
** Tags added: verification-done
--
You received this bug notification because you are a member of Ubuntu
Bu
Hello bugproxy, or anyone else affected,
Accepted debian-installer into trusty-proposed. The package will build
now and be available at https://launchpad.net/ubuntu/+source/debian-
installer/20101020ubuntu318.41 in a few hours, and then in the -proposed
repository.
Please help us by testing this
** Branch linked: lp:~ubuntu-core-dev/debian-installer/trusty-proposed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage notifica
** Branch linked: lp:~ubuntu-core-dev/debian-installer/xenial-proposed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage notifica
I have tested on Trusty with "preseed - 1.62ubuntu1.1" by rebuilding the
source code on a PPA along with d-i " 20101020ubuntu318.40" in order to
get a mini.iso.
I confirmed the mini.iso override the hostname as expected if
"netcfg/hostname" is set and that the override occurred before the disk
con
Hello bugproxy, or anyone else affected,
Accepted preseed into trusty-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/preseed/1.62ubuntu1.1
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://
Ok, looks like yakkety already has picked up the latest preseed in the
current debian-installer package in the images; marking this one Fix
Released.
** Changed in: debian-installer (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member
d-i debdiff for Trusty
** Patch added: "d-i_trusty.debdiff"
https://bugs.launchpad.net/ubuntu/trusty/+source/preseed/+bug/1452202/+attachment/4760531/+files/d-i_trusty.debdiff
** Changed in: debian-installer (Ubuntu)
Assignee: (unassigned) => Eric Desrochers (slashd)
** Changed in: debi
d-i debdiff for Yakkety
** Patch added: "d-i_yakkety.debdiff"
https://bugs.launchpad.net/ubuntu/trusty/+source/preseed/+bug/1452202/+attachment/4760529/+files/d-i_yakkety.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
htt
** Also affects: debian-installer (Ubuntu)
Importance: Undecided
Status: New
** Changed in: debian-installer (Ubuntu)
Status: New => In Progress
** Changed in: debian-installer (Ubuntu Trusty)
Status: New => In Progress
** Changed in: debian-installer (Ubuntu)
Importan
d-i debdiff for Xenial
** Patch added: "d-i_xenial.debdiff"
https://bugs.launchpad.net/ubuntu/trusty/+source/preseed/+bug/1452202/+attachment/4760530/+files/d-i_xenial.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https:
Next step, is to increase the version of d-i for Y/X/T for the change in
preseed to be rebuild and be part of the new ISOs (Daily)
Eric
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
I have tested "preseed - 1.71ubuntu1.1" by rebuilding the source code on
a PPA along with d-i "20101020ubuntu451.6" in order to get a mini.iso.
I confirmed the mini.iso override the hostname as expected if
"netcfg/hostname" is set and that the override occurred before the disk
configuration for th
Hello bugproxy, or anyone else affected,
Accepted preseed into xenial-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/preseed/1.71ubuntu1.1
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://
This bug was fixed in the package preseed - 1.71ubuntu3
---
preseed (1.71ubuntu3) yakkety; urgency=medium
* Fix for netcfg/hostname, if set, to take precedence. (LP: #1452202)
- Modify debian/network-preseed.postinst
-- Eric Desrochers Wed, 05 Oct 2016
11:50:09 -0400
** Cha
Since we changed stuff in preseed, fixing up the package links...
** Package changed: netcfg (Ubuntu) => preseed (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed
** Tags added: targetmilestone-inin1510
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage notifications about this bug go to:
htt
** Tags removed: targetmilestone-inin1510 vivid
** Tags added: sts-sponsor
** Tags added: sts-sru
** Description changed:
[Impact]
* DHCP hostname take precedence over netcfg/hostname, if set.
The problem is that the system read the preseed file after having run
netcfg, thus the p
Debdiff for Yakkety
** Patch added: "lp_1452202_yak.debdiff"
https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/1452202/+attachment/4755192/+files/lp_1452202_yak.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://b
Debdiff for Xenial
** Patch added: "lp_1452202_xenial.debdiff"
https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/1452202/+attachment/4755214/+files/lp_1452202_xenial.debdiff
** Changed in: netcfg (Ubuntu Xenial)
Assignee: (unassigned) => Eric Desrochers (slashd)
** Changed in: netcf
Debdiff for Trusty
** Patch added: "lp_1452202_trusty.debdiff"
https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/1452202/+attachment/4755204/+files/lp_1452202_trusty.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
http
Moving the script in preseed src code under "network-preseed.postinst"
address the vg name creation situation (see previous comment).
It basically make "netcfg/hostname",if set, to load (override the
hostname) before the "Volume Group" creation start which build the vg
name based on the hostname (
Additional note about the re-work.
The original patch I have submitted works as expected by overriding the
hostname but ...
I noticed after more testing that if LVM is used partman rely on
"/etc/hostname" to name the VG[1] for instance : --vg-root.
Unfortunately, the current patch does the hostn
I have deleted the proposed .debdiff as I want to re-work them a little
bit.
Will re-submit once my re-work is completed.
Eric
** Patch removed: "Fix for Yakkety"
https://bugs.launchpad.net/ubuntu/trusty/+source/netcfg/+bug/1452202/+attachment/4744663/+files/yakkety_lp1452202.debdiff
** Pat
** Changed in: netcfg (Debian)
Status: Unknown => New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage notifications abou
** Changed in: netcfg (Ubuntu Xenial)
Importance: Undecided => Medium
** Project changed: netcfg => ubuntu-translations
** Changed in: ubuntu-translations
Importance: Unknown => Undecided
** Changed in: ubuntu-translations
Remote watch: Debian Bug tracker #755848 => None
** No longer aff
** Description changed:
[Impact]
* DHCP hostname take precedence over netcfg/hostname, if set.
The problem is that the system read the preseed file after having run
netcfg, thus the preseed parameter cannot be loaded straight from the
start.
[Test Case]
* HOWTO reproduc
** Also affects: netcfg (Ubuntu Xenial)
Importance: Undecided
Status: New
** Also affects: netcfg (Ubuntu Trusty)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launc
** Changed in: netcfg (Ubuntu Trusty)
Assignee: (unassigned) => Eric Desrochers (slashd)
** Changed in: netcfg (Ubuntu Trusty)
Importance: Undecided => Medium
** Changed in: netcfg (Ubuntu Trusty)
Status: New => In Progress
--
You received this bug notification because you are a
The attachment "Fix for Yakkety" seems to be a debdiff. The ubuntu-
sponsors team has been subscribed to the bug report so that they can
review and hopefully sponsor the debdiff. If the attachment isn't a
patch, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if yo
** Description changed:
[Impact]
* DHCP hostname take precedence over netcfg/hostname, if set.
The problem is that the system read the preseed file after having run
netcfg, thus the preseed parameter cannot be loaded straight from the
start.
-
- If netcfg is re-run, it freezes.
** Description changed:
[Impact]
* DHCP hostname take precedence over netcfg/hostname, if set.
The problem is that the system read the preseed file after having run
netcfg, thus the preseed parameter cannot be loaded straight from the
start.
If netcfg is re-run, it freezes.
Fix for Trusty
** Patch added: "Fix for Trusty"
https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/1452202/+attachment/4744664/+files/trusty_lp1452202.debdiff
** Tags added: sts
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
Fix for Yakkety
** Description changed:
+ [Impact]
+
+ * DHCP hostname take precedence over netcfg/hostname, if set.
+
+ The problem is that the system read the preseed file after having run netcfg,
thus preseed parameter cannot be loaded straight from the start
+
+ [Test Case]
+
+ * HOWT
** Changed in: netcfg (Ubuntu)
Assignee: Mathieu Trudel-Lapierre (cyphermox) => Eric Desrochers (slashd)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fail
This bug is still on my list, but there hasn't been progress for the
moment. The workaround I can think of to set hostname during the install
would be to preseed the value on the command-line (setting
netcfg/hostname=whatever along with priority=critical, etc.).
--
You received this bug notificat
** Changed in: netcfg
Status: Unknown => New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage notifications about this bu
** Bug watch added: Debian Bug tracker #755848
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755848
** Also affects: netcfg via
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755848
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a m
Hi Mathieu Trudel-Lapierre,
Kindly let us know the updates and target release.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage
Reassigning to netcfg which is the correct package where to fix this.
** Package changed: debian-installer (Ubuntu) => netcfg (Ubuntu)
** Changed in: netcfg (Ubuntu)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is sub
Yes, I'd be the one fixing this issue -- I'm just responding to the fact
that this was initially opened as "how can I make d-i not ask for the
hostname, to get a fully unattended install". In this sense, the bug is
"fixed", by bringing up debconf priority, the install will be
unattended.
Now, I'd
Looks to me like you're "just" missing adding 'priority=critical' on
the command-line to avoid being asked for the hostname. This happens
before while the hostname is preseeded, the network needs to be brought
up before it can be read, and netcfg does both bringing up the network
and setting the h
** Changed in: debian-installer (Ubuntu)
Assignee: (unassigned) => Mathieu Trudel-Lapierre (mathieu-tl)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails
Confirming/Triaged: I can reproduce this here easily; preseeded hostname
should indeed get used. As I recall this isn't a new issue.
Setting priority to medium since there is an "easy" workaround for it.
** Changed in: debian-installer (Ubuntu)
Status: New => Triaged
** Changed in: debian
** Tags added: vivid
** Package changed: ubuntu => debian-installer (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1452202
Title:
ubuntu preseed install fails to set a hostname
To manage n
Thank you for taking the time to report this bug and helping to make
Ubuntu better. It seems that your bug report is not filed about a
specific source package though, rather it is just filed against Ubuntu
in general. It is important that bug reports be filed about source
packages so that people
81 matches
Mail list logo