systemd fails to generate .device units inside LXD containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Won't Fix
|
Undecided
|
Dimitri John Ledkov |
Bug Description
See LXD issue here for more context: https:/
After attaching a block device (in my case /dev/sdc3) to a LXD container, the dev-sdc3.device unit is not generated. However, the dev-sdc3.mount unit is generated correctly.
Steps to reproduce (from GitHub issue):
stgraber@
stgraber@
stgraber@
/dev/loop1: [0022]:169383 (/var/lib/
/dev/loop2: [0022]:770242 (/var/lib/
/dev/loop0: [0022]:1170310 (/var/lib/
/dev/loop3: [0045]:309158 (/home/
stgraber@
Creating issue3638
Starting issue3638
stgraber@
Device sda added to issue3638
stgraber@
mke2fs 1.42.13 (17-May-2015)
Discarding device blocks: done
Creating filesystem with 2621440 4k blocks and 655360 inodes
Filesystem UUID: 77832ca2-
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
stgraber@
Y
stgraber@
stgraber@
root@issue3638:~# echo "/dev/sda /mnt ext4 defaults 0 0" >> /etc/fstab
root@issue3638:~# cat /etc/fstab
LABEL=cloudimg-
/dev/sda /mnt ext4 defaults 0 0
root@issue3638:~# exit
stgraber@
stgraber@
stgraber@
stgraber@
stgraber@
stgraber@
mnt.mount loaded inactive dead start /mnt
stgraber@
dev-sda.device loaded inactive dead start dev-sda.device
dev-sda.mount loaded active mounted /dev/sda
stgraber@
root 54 0.0 0.0 41720 1864 ? Ss 16:55 0:00 /lib/systemd/
stgraber@
description: | updated |
tags: | added: lxd |
tags: | added: lxc |
Changed in systemd (Ubuntu): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
tags: | added: id-59df87551899547b7b2171c2 |
tags: | added: fr-623 |
Status changed to 'Confirmed' because the bug affects multiple users.