Booting with multiple squashfs files

Asked by Daniel on 2016-03-24

AFAIK, Casper supports booting when there is more than one squashfs file in the casper directory. At least, this _was_ supported under Ubuntu trusty which used aufs as union file system. Then there came utopic, wily, vivid which switched to overlayfs. This file system didn't support layering more than one ro sources in its early versions so that this feature didn't work anymore. The code in the casper script looks like a work-around about this by stacked mounting multiple overlayfs. Unfortunately, I've never seen a version of overlayfs which supported another overlayfs as source.

Since kernel 3.19, overlayfs officially supports multiple layers (, so it's time to rewrite this piece of code in the casper script.

Fully-working patch attached.

Question information

English Edit question
Ubuntu casper Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Daniel (hackie) said :

Oops, should by a bug, not a question. CLOSED