ubuntu@ubuntu-mate:/tmp/test$ grep -C2 hostname /usr/share/initramfs-
tools/init


# mdadm needs hostname to be set. This has to be done before the udev rules are 
called!
if [ -f "/etc/hostname" ]; then
        /bin/hostname -b -F /etc/hostname 2>&1 1>/dev/null
fi

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1545297

Title:
  hostname: invalid option -- '-b' displayed during boot

Status in initramfs-tools package in Ubuntu:
  Confirmed

Bug description:
  During boot, you can see for a short time "hostname: invalid option --
  'b'" and a line about busybox, and a few other lines.

  Checking /usr/share/initramfs-tools/init, which is copied into the
  initramfs during creation, indeed reveals a hostname call with "-b".

  Also, unpacking my current initramfs and calling bin/hostname, the
  following is displayed, which IIRC coincides very well with the
  message displayed during boot for a short time:

  $ bin/hostname -b
  bin/hostname: invalid option -- 'b'
  BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) multi-call binary.

  Usage: hostname [OPTIONS] [HOSTNAME | -F FILE]

  Get or set hostname or DNS domain name

        -s      Short
        -i      Addresses for the hostname
        -d      DNS domain name
        -f      Fully qualified domain name
        -F FILE Use FILE's content as hostname
  $ 

  The initramfs should only use hostname options which busybox
  understands.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: initramfs-tools 0.120ubuntu6
  ProcVersionSignature: Ubuntu 4.2.0-27.32-generic 4.2.8-ckt1
  Uname: Linux 4.2.0-27-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Sat Feb 13 16:43:48 2016
  PackageArchitecture: all
  SourcePackage: initramfs-tools
  UpgradeStatus: Upgraded to wily on 2016-02-11 (1 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1545297/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to