00-livecd.sh: complete overlayfs support

master v63
Fabio Erculiani 10 years ago
parent d18ac2c7c5
commit 386a0ad5ab

@ -16,6 +16,13 @@ _is_overlayfs() {
return 1 return 1
} }
_is_fallback_to_copy_required() {
if _is_aufs || _is_overlayfs; then
return 1
fi
return 0
}
_find_loop() { _find_loop() {
local l= local l=
for loop in ${LOOPS}; do for loop in ${LOOPS}; do
@ -436,8 +443,8 @@ livecd_mount() {
is_nfs && _livecd_mount_unpack_nfs is_nfs && _livecd_mount_unpack_nfs
# Manually copy livecd content to tmpfs if aufs is disabled # Manually copy livecd content to tmpfs if needed
_is_aufs || _livecd_mount_copy_content _is_fallback_to_copy_required && _livecd_mount_copy_content
} }
cd_update() { cd_update() {

@ -568,6 +568,9 @@ which the ramdisk scripts would recognize.
*aufs*:: *aufs*::
Enables support for AUFS2 (if available in the kernel). Enables support for AUFS2 (if available in the kernel).
*overlayfs*::
Enables support for Overlay FS (if available in the kernel).
*rootflags*=<...>:: *rootflags*=<...>::
Additional flags to mount the real root system with. Additional flags to mount the real root system with.
For example *rootflags*=noatime would make "-o ro,noatime". For example *rootflags*=noatime would make "-o ro,noatime".

Loading…
Cancel
Save