>From 718363fc110dcd2758ddfbe92912ba6c03896a25 Mon Sep 17 00:00:00 2001 From: "Konstantin A. Lepikhov" Date: Fri, 11 Sep 2015 14:48:39 +0100 Subject: [PATCH] Experimental overlayfs support If aufs not available/broken we could try to use overlayfs. NB: changes below doesn't work without modified make-initrd-propagator! --- features.in/stage2/stage1/modules.d/10-stage2 | 1 + features.in/stage2/stage1/scripts.d/03-test-kernel | 3 ++- sub.in/stage1/modules | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/features.in/stage2/stage1/modules.d/10-stage2 b/features.in/stage2/stage1/modules.d/10-stage2 index 846482a..29ebd8b 100644 --- a/features.in/stage2/stage1/modules.d/10-stage2 +++ b/features.in/stage2/stage1/modules.d/10-stage2 @@ -34,6 +34,7 @@ atl2.ko atp870u.ko atp.ko aufs.ko +overlay.ko axnet_cs.ko b44.ko bnx2.ko diff --git a/features.in/stage2/stage1/scripts.d/03-test-kernel b/features.in/stage2/stage1/scripts.d/03-test-kernel index e846dbb..9b21fbb 100755 --- a/features.in/stage2/stage1/scripts.d/03-test-kernel +++ b/features.in/stage2/stage1/scripts.d/03-test-kernel @@ -24,7 +24,8 @@ configured() ls $CONFIGS >&/dev/null || fatal "no stage1 kernel config found in /boot" # test for installer-required filesystems support -for opt in SQUASHFS AUFS_FS $GLOBAL_STAGE1_KCONFIG; do +for opt in SQUASHFS AUFS_FS OVERLAY_FS $GLOBAL_STAGE1_KCONFIG; do + [ "$opt" = AUFS_FS ] && [ $(configured "OVERLAY_FS=[my]") -a $(configured "AUFS_FS=n") ] && continue configured "$opt=[my]" || fatal "stage1 kernel must have $opt support" done diff --git a/sub.in/stage1/modules b/sub.in/stage1/modules index 629681a..f6f9e76 100644 --- a/sub.in/stage1/modules +++ b/sub.in/stage1/modules @@ -4,6 +4,7 @@ kernel/drivers/rtc af_packet.ko arc4.ko aufs.ko +overlay.ko cdrom.ko evdev.ko ext4.ko -- 2.7.4