← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1745531] Re: Reinforce hostname preseed regex

 

** Also affects: preseed (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: preseed (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Also affects: preseed (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Changed in: preseed (Ubuntu Trusty)
     Assignee: (unassigned) => Hua Zhang (zhhuabj)

** Changed in: preseed (Ubuntu Xenial)
     Assignee: (unassigned) => Hua Zhang (zhhuabj)

** Changed in: preseed (Ubuntu Bionic)
     Assignee: (unassigned) => Hua Zhang (zhhuabj)

** Changed in: preseed (Ubuntu Bionic)
       Status: New => Confirmed

** Changed in: preseed (Ubuntu Xenial)
       Status: New => Confirmed

** Changed in: preseed (Ubuntu Trusty)
       Status: New => Confirmed

** Changed in: preseed (Ubuntu Trusty)
   Importance: Undecided => Medium

** Changed in: preseed (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: preseed (Ubuntu Bionic)
   Importance: Undecided => Medium

** Also affects: debian-installer (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: debian-installer (Ubuntu Bionic)
     Assignee: (unassigned) => Eric Desrochers (slashd)

** Changed in: debian-installer (Ubuntu Xenial)
     Assignee: (unassigned) => Eric Desrochers (slashd)

** Changed in: debian-installer (Ubuntu Trusty)
     Assignee: (unassigned) => Eric Desrochers (slashd)

** Changed in: preseed (Ubuntu Trusty)
       Status: Confirmed => In Progress

** Changed in: preseed (Ubuntu Xenial)
       Status: Confirmed => In Progress

** Changed in: preseed (Ubuntu Bionic)
       Status: Confirmed => In Progress

** Also affects: debian-installer (Ubuntu Artful)
   Importance: Undecided
       Status: New

** Also affects: preseed (Ubuntu Artful)
   Importance: Undecided
       Status: New

** Changed in: preseed (Ubuntu Artful)
     Assignee: (unassigned) => Hua Zhang (zhhuabj)

** Changed in: preseed (Ubuntu Artful)
   Importance: Undecided => Medium

** Changed in: preseed (Ubuntu Artful)
       Status: New => In Progress

** Changed in: debian-installer (Ubuntu Artful)
     Assignee: (unassigned) => Eric Desrochers (slashd)

** Changed in: debian-installer (Ubuntu Bionic)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1745531

Title:
  Reinforce hostname preseed regex

Status in debian-installer package in Ubuntu:
  In Progress
Status in preseed package in Ubuntu:
  In Progress
Status in debian-installer source package in Trusty:
  New
Status in preseed source package in Trusty:
  In Progress
Status in debian-installer source package in Xenial:
  New
Status in preseed source package in Xenial:
  In Progress
Status in debian-installer source package in Artful:
  New
Status in preseed source package in Artful:
  In Progress
Status in debian-installer source package in Bionic:
  In Progress
Status in preseed source package in Bionic:
  In Progress

Bug description:
  This is the same issue reported in https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202
  However that is marked as 'Fix Released' and the issue is still occurring so it seems best to just open a new bug according to Eric's comment.

  The present hostname preseed regex looks like:

  if ! echo "$RET" | grep -q 'ubuntu'; then
     ...
     /bin/sed -i "s/$CURRENT_HOSTNAME/$NETCFG_HOSTNAME/" /etc/hosts
     ...
  fi

  There are still multiple problems with them according to Peter's
  comment
  (https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202/comments/64)
  and Mathieu's comment
  (https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202/comments/93).

  - 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 'ubuntuxenial'
  should match this grep.

  - The sed needs to be fixed to more appropriately catch for the exact
  string, rather than any substring -- ie. it should not match
  'ipv6-allnodes' if the name received from DHCP was 'node'. It should
  only match and replace for 'node'.

  So the fix will try to:

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1745531/+subscriptions