diff --git a/defaults/initrd.d/00-livecd.sh b/defaults/initrd.d/00-livecd.sh index 181891d..0a81df6 100755 --- a/defaults/initrd.d/00-livecd.sh +++ b/defaults/initrd.d/00-livecd.sh @@ -16,6 +16,13 @@ _is_overlayfs() { return 1 } +_is_fallback_to_copy_required() { + if _is_aufs || _is_overlayfs; then + return 1 + fi + return 0 +} + _find_loop() { local l= for loop in ${LOOPS}; do @@ -436,8 +443,8 @@ livecd_mount() { is_nfs && _livecd_mount_unpack_nfs - # Manually copy livecd content to tmpfs if aufs is disabled - _is_aufs || _livecd_mount_copy_content + # Manually copy livecd content to tmpfs if needed + _is_fallback_to_copy_required && _livecd_mount_copy_content } cd_update() { diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt index 2d6b988..a05f0a9 100644 --- a/doc/genkernel.8.txt +++ b/doc/genkernel.8.txt @@ -568,6 +568,9 @@ which the ramdisk scripts would recognize. *aufs*:: Enables support for AUFS2 (if available in the kernel). +*overlayfs*:: + Enables support for Overlay FS (if available in the kernel). + *rootflags*=<...>:: Additional flags to mount the real root system with. For example *rootflags*=noatime would make "-o ro,noatime".