cc_mounts should ensure_dir on lower, upper and workdir params
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Low
|
Unassigned |
Bug Description
Ubuntu Trusty 14.04 machine that mounts an overlayfs at /var/spool/postfix, and this works great:
fs_setup:
- label: postfix
device: /dev/xvde
filesystem: ext4
mounts:
- [ /dev/xvde, /mnt/postfix-
- [ overlayfs, /var/spool/postfix, "overlayfs", "defaults,
mount_default_
Upgrading the system image to Xenial 16.04 causes the overlayfs to fail to mount with the error “missing ‘workdir’”.
Turns out, between Trusty and Xenial, the “workdir” directory in overlayfs went from optional to mandatory, and now the system no longer deploys.
What needs to happen is that after the fs_setup step that creates /mnt/postfix-
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Tracked in Github Issues as https:/ /github. com/canonical/ cloud-init/ issues/ 2916