← Back to team overview

touch-packages team mailing list archive

[Bug 1482810] [NEW] dropbear DEVICE variable is ignored when sourced from conf.d

 

Public bug reported:

1) this is what "/usr/share/initramfs-tools/init" does:
```
. /conf/initramfs.conf
for conf in conf/conf.d/*; do
 [ -f ${conf} ] && . ${conf}
done
. /scripts/functions
```

2) this is  what "/usr/share/initramfs-tools/scripts/init-premount/dropbear" does:
```
. /scripts/functions
. /conf/initramfs.conf
configure_networking &
```

3) bug result: ```configure_networking ``` will not find a  $DEVICE variable
if the $DEVICE variable is overriden from some ```/etc/initramfs-tools/conf.d/user-file```

4) I would hope this be somehow enforced for all scripts?

###

lsb_release -rd
Description:    Ubuntu 14.04.2 LTS
Release:        14.04

###

apt-cache policy initramfs-tools
initramfs-tools:
  Installed: 0.103ubuntu4.2
  Candidate: 0.103ubuntu4.2
  Version table:
 *** 0.103ubuntu4.2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.103ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

** Affects: initramfs-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: conf.d device dropbear variable

** Description changed:

- 
  1) this is what "/usr/share/initramfs-tools/init" does:
  ```
  . /conf/initramfs.conf
  for conf in conf/conf.d/*; do
- 	[ -f ${conf} ] && . ${conf}
+  [ -f ${conf} ] && . ${conf}
  done
  . /scripts/functions
  ```
  
- 2) this is  what "/usr/share/initramfs-tools/scripts/init-premount" does:
+ 2) this is  what "/usr/share/initramfs-tools/scripts/init-premount/dropbeaar" does:
  ```
  . /scripts/functions
  . /conf/initramfs.conf
  configure_networking &
  ```
  
  3) bug result: ```configure_networking ``` will not find a  $DEVICE variable
  if the $DEVICE variable is overriden from some ```/etc/initramfs-tools/conf.d/user-file```
  
  4) I would hope this be somehow enforced for all scripts?
  
  ###
  
  lsb_release -rd
  Description:    Ubuntu 14.04.2 LTS
  Release:        14.04
  
  ###
  
  apt-cache policy initramfs-tools
  initramfs-tools:
-   Installed: 0.103ubuntu4.2
-   Candidate: 0.103ubuntu4.2
-   Version table:
-  *** 0.103ubuntu4.2 0
-         500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
-         100 /var/lib/dpkg/status
-      0.103ubuntu4 0
-         500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
+   Installed: 0.103ubuntu4.2
+   Candidate: 0.103ubuntu4.2
+   Version table:
+  *** 0.103ubuntu4.2 0
+         500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
+         100 /var/lib/dpkg/status
+      0.103ubuntu4 0
+         500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

** Description changed:

  1) this is what "/usr/share/initramfs-tools/init" does:
  ```
  . /conf/initramfs.conf
  for conf in conf/conf.d/*; do
   [ -f ${conf} ] && . ${conf}
  done
  . /scripts/functions
  ```
  
- 2) this is  what "/usr/share/initramfs-tools/scripts/init-premount/dropbeaar" does:
+ 2) this is  what "/usr/share/initramfs-tools/scripts/init-premount/dropbear" does:
  ```
  . /scripts/functions
  . /conf/initramfs.conf
  configure_networking &
  ```
  
  3) bug result: ```configure_networking ``` will not find a  $DEVICE variable
  if the $DEVICE variable is overriden from some ```/etc/initramfs-tools/conf.d/user-file```
  
  4) I would hope this be somehow enforced for all scripts?
  
  ###
  
  lsb_release -rd
  Description:    Ubuntu 14.04.2 LTS
  Release:        14.04
  
  ###
  
  apt-cache policy initramfs-tools
  initramfs-tools:
    Installed: 0.103ubuntu4.2
    Candidate: 0.103ubuntu4.2
    Version table:
   *** 0.103ubuntu4.2 0
          500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       0.103ubuntu4 0
          500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

-- 
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/1482810

Title:
  dropbear DEVICE variable is ignored when sourced from conf.d

Status in initramfs-tools package in Ubuntu:
  New

Bug description:
  1) this is what "/usr/share/initramfs-tools/init" does:
  ```
  . /conf/initramfs.conf
  for conf in conf/conf.d/*; do
   [ -f ${conf} ] && . ${conf}
  done
  . /scripts/functions
  ```

  2) this is  what "/usr/share/initramfs-tools/scripts/init-premount/dropbear" does:
  ```
  . /scripts/functions
  . /conf/initramfs.conf
  configure_networking &
  ```

  3) bug result: ```configure_networking ``` will not find a  $DEVICE variable
  if the $DEVICE variable is overriden from some ```/etc/initramfs-tools/conf.d/user-file```

  4) I would hope this be somehow enforced for all scripts?

  ###

  lsb_release -rd
  Description:    Ubuntu 14.04.2 LTS
  Release:        14.04

  ###

  apt-cache policy initramfs-tools
  initramfs-tools:
    Installed: 0.103ubuntu4.2
    Candidate: 0.103ubuntu4.2
    Version table:
   *** 0.103ubuntu4.2 0
          500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       0.103ubuntu4 0
          500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

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


Follow ups