FS#45779 - [schroot] 'overlay' union-type is not allowed
Attached to Project:
Community Packages
Opened by Iwan Briquemont (iwanb) - Sunday, 26 July 2015, 12:00 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 10 March 2016, 18:26 GMT
Opened by Iwan Briquemont (iwanb) - Sunday, 26 July 2015, 12:00 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 10 March 2016, 18:26 GMT
|
Details
Description:
schroot allows to use a union fs, but it has a hardcoded list of allowed filesystems. In Archlinux the overlayfs module is named overlay, which means it fails to match in the hardcoded list. Possible solutions: - Add 'overlay' in the hardcoded list upstream - Patch the code to change 'overlayfs' to 'overlay' - Rename the overlay module to overlayfs like other distributions Additional info: Error when running schroot: schroot --option=union-type=overlay E: /etc/schroot/chroot.d/click-ubuntu-sdk-15.04-armhf: line 12 [click-ubuntu-sdk-15.04-armhf] union-type: Unknown filesystem union type ‘overlay’ Function with the check: lib/schroot/chroot/facet/fsunion.cc-143- void lib/schroot/chroot/facet/fsunion.cc-144- fsunion::set_union_type (const std::string& type) lib/schroot/chroot/facet/fsunion.cc-145- { lib/schroot/chroot/facet/fsunion.cc-146- if (type == "aufs" || lib/schroot/chroot/facet/fsunion.cc:147: type == "overlayfs" || lib/schroot/chroot/facet/fsunion.cc-148- type == "unionfs" || lib/schroot/chroot/facet/fsunion.cc-149- type == "none") lib/schroot/chroot/facet/fsunion.cc-150- this->union_type = type; lib/schroot/chroot/facet/fsunion.cc-151- else lib/schroot/chroot/facet/fsunion.cc-152- throw error(type, FSUNION_TYPE_UNKNOWN); Steps to reproduce: Configure a schroot with option union-type=overlay and try to run it, or this command: schroot --option=union-type=overlay |
This task depends upon
1.6.10-6
The issue is also present in the upstream launchpad code.
There seems to be another related issue, 'mount -t overlay' fails if the workdir option is not given but upperdir is given.
The patch works if you pass the correct mount options using schroot's union-mount-options option.
I'll report this upstream then.
Thanks !