Dropbear initramfs hook creates authorized_keys file in an invalid folder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dropbear (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Dropbear initramfs hook copies `/etc/initramfs
The script responsible is `/usr/share/
`home=$(mktemp -d "$DESTDIR/
which ends up creating a temp directory in initramfs file, similar to `/root-hZQ48a`, instead of `/root`. Dropbear fails to find `/root/
See the contents of a generated initrd with:
`cd `mktemp -d` && gzip -dc /boot/initrd.
Setting the $home variable with the following lines should solve the issue:
```
home="$
mkdir -p $home
```
Status changed to 'Confirmed' because the bug affects multiple users.