Skip to content

Commit

Permalink
00-livecd.sh: complete overlayfs support
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Erculiani committed Feb 16, 2015
1 parent d18ac2c commit 386a0ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions defaults/initrd.d/00-livecd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down
3 changes: 3 additions & 0 deletions doc/genkernel.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down

0 comments on commit 386a0ad

Please sign in to comment.