Add support for overlayfs #106

Closed
opened 2015-06-10 20:44:34 +00:00 by philm · 20 comments
philm commented 2015-06-10 20:44:34 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Since linux318 overlayfs is supported within Manjaro Linux. Currently we are using aufs within buildiso for all kernels. It would be also good to support another filesystem for our install medias. Here is a small example for how to use overlayfs:

mkdir -p /tmp/{lower,merged,upper,work}
sudo mount -t overlay overlay -o lowerdir=/tmp/lower,upperdir=/tmp/upper,workdir=/tmp/work /tmp/merged

A full documentation can be found here.

*Created by: philmmanjaro* Since linux318 **overlayfs** is supported within Manjaro Linux. Currently we are using **aufs** within buildiso for all kernels. It would be also good to support another filesystem for our install medias. Here is a small example for how to use **overlayfs**: ``` mkdir -p /tmp/{lower,merged,upper,work} sudo mount -t overlay overlay -o lowerdir=/tmp/lower,upperdir=/tmp/upper,workdir=/tmp/work /tmp/merged ``` A full documentation can be found [here](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/filesystems/overlayfs.txt).
philm commented 2015-06-10 20:52:42 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Kirek

Even it's it supported since linux318, until linux40 it didn't gain all features we need: multiple lower layers.

*Created by: Kirek* Even it's it supported since linux318, until linux40 it didn't gain all features we need: multiple lower layers.
philm commented 2015-06-11 04:55:52 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Yes, only with linux40 or higher we should enable overlayfs. That's why we should re-add displaying kernel version in -q switch again.

*Created by: philmmanjaro* Yes, only with **linux40** or higher we should enable **overlayfs**. That's why we should re-add displaying kernel version in -q switch again.
philm commented 2015-06-11 12:00:55 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Kirek

First try github.com/manjaro/manjaro-tools@2a06b641c1

*Created by: Kirek* First try https://github.com/manjaro/manjaro-tools/commit/2a06b641c1154d1bb1c3efe104c0ea101b452930
philm commented 2015-06-11 22:25:53 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: ryanvade

Is there a benefit to using overlayfs?

*Created by: ryanvade* Is there a benefit to using overlayfs?
philm commented 2015-06-12 04:32:25 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

@ryanvade: if we don't try we never would know. To have options is always good. We try to use it anyway with our Manjaro 0.9-series ...

*Created by: philmmanjaro* @ryanvade: if we don't try we never would know. To have options is always good. We try to use it anyway with our Manjaro 0.9-series ...
philm commented 2015-06-17 08:55:54 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: telephone

Is there a benefit to using overlayfs?

It's pretty awesome with profile-sync-daemon and anything-sync-daemon 👍.

*Created by: telephone* > Is there a benefit to using overlayfs? It's pretty awesome with [profile-sync-daemon](https://github.com/graysky2/profile-sync-daemon) and [anything-sync-daemon](https://github.com/graysky2/anything-sync-daemon) :+1:.
philm commented 2015-06-24 18:18:13 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Kirek

With overlayfs branch an linux40 it currently boot to desktop (checked kde and xfce) using only overlayfs, seems to be some problems with starting calamares thought.

*Created by: Kirek* With overlayfs branch an linux40 it currently boot to desktop (checked kde and xfce) using only overlayfs, seems to be some problems with starting calamares thought.
philm commented 2015-06-24 18:25:17 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

@Kirek: can you post me any terminal log of calamares using the -d switch? Does thus start up?

*Created by: philmmanjaro* @Kirek: can you post me any terminal log of **calamares** using the **-d** switch? Does **thus** start up?
philm commented 2015-06-24 19:45:09 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Kirek

After testing thus (crashed when trying to rsync the new system because the thus.conf was not created in that iso), tried calamares again and started. It seems it didn't like the system partitions and closed itself, after thus recreated the partitions it worked fine...
Rebooted, and installed the new system with calamares without problems.

*Created by: Kirek* After testing thus (crashed when trying to rsync the new system because the thus.conf was not created in that iso), tried calamares again and started. It seems it didn't like the system partitions and closed itself, after thus recreated the partitions it worked fine... Rebooted, and installed the new system with calamares without problems.
philm commented 2015-06-24 20:36:06 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

@Kirek: Calamares don't support lvm/luks yet. That's why. Regarding thus, yes - the config needed to be modified first. This means your work is "working" ;). Please adjust the code as mentioned by @udeved earlier and push all overlayfs related stuff in a separate lib we can source.

*Created by: philmmanjaro* @Kirek: Calamares don't support **lvm/luks** yet. That's why. Regarding **thus**, yes - the config needed to be modified first. This means your work is "working" ;). Please adjust the code as mentioned by @udeved earlier and push all overlayfs related stuff in a separate lib we can source.
philm commented 2015-06-24 20:37:58 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

The idea is to dynamically source the proper lib according to switch, and we adjust the code and use same function names for the two file system mount operations.

*Created by: udeved* The idea is to dynamically source the proper lib according to switch, and we adjust the code and use same function names for the two file system mount operations.
philm commented 2015-06-24 20:41:09 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Kirek

What's to separate? they are one line commands...

*Created by: Kirek* What's to separate? they are one line commands...
philm commented 2015-06-24 20:55:30 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Nevermind, is it ready to merge?

*Created by: udeved* Nevermind, is it ready to merge?
philm commented 2015-06-25 10:35:23 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I actually like the overlayfs.
It much better in handling mounted images.
Need to correct couple of things though after my changes, but very nice.

*Created by: udeved* I actually like the overlayfs. It much better in handling mounted images. Need to correct couple of things though after my changes, but very nice.
philm commented 2015-06-25 11:45:26 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Whats the mimimum kernel req for overlayfs so we can document it in the config?
Starting with 4.0 series?
3.19 doesn't work, 4.1 does.

*Created by: udeved* Whats the mimimum kernel req for overlayfs so we can document it in the config? Starting with 4.0 series? 3.19 doesn't work, 4.1 does.
philm commented 2015-06-25 12:01:16 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: Kirek

4.0 is the minimum, it added support for multiple lower layers

*Created by: Kirek* 4.0 is the minimum, it added support for multiple lower layers
philm commented 2015-06-25 12:02:51 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Ah, thx, exactly what the error cause, joining multiple images.

*Created by: udeved* Ah, thx, exactly what the error cause, joining multiple images.
philm commented 2015-06-25 19:23:33 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

Currently I'm building 4.1 again. Somehow the i686 build doesn't boot up on my end. I might have found a patch for that matter, still don't know why x86_64 boots, though ...

*Created by: philmmanjaro* Currently I'm building 4.1 again. Somehow the i686 build doesn't boot up on my end. I might have found a patch for that matter, still don't know why x86_64 boots, though ...
philm commented 2015-06-25 19:34:13 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I will try with kernel 4.0.
I've only tested x86_64 iso yet, but building with overlayfs enabled is fine.

*Created by: udeved* I will try with kernel 4.0. I've only tested x86_64 iso yet, but building with overlayfs enabled is fine.
philm commented 2015-06-25 19:38:36 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

With build I ment the kernel itself. I always hit a kernel fault.

*Created by: philmmanjaro* With build I ment the kernel itself. I always hit a kernel fault.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#106
No description provided.