rootcopy support
parent
77d0e6ea51
commit
d10983c0ac
|
|
@ -40,6 +40,9 @@ init_union "$CHANGES" "$UNION"
|
|||
# add data to union
|
||||
union_append_bundles "$DATA" "$BUNDLES" "$UNION"
|
||||
debug_shell
|
||||
# rootcopy
|
||||
copy_rootcopy_content "$DATA" "$UNION"
|
||||
|
||||
# create empty fstab
|
||||
fstab_create "$UNION"
|
||||
debug_shell
|
||||
|
|
|
|||
12
livekitlib
12
livekitlib
|
|
@ -367,6 +367,18 @@ persistent_changes()
|
|||
fi
|
||||
}
|
||||
|
||||
# Copy content of rootcopy directory to union
|
||||
# $1 = data directory
|
||||
# $2 = union directory
|
||||
copy_rootcopy_content()
|
||||
{
|
||||
if [ "$(find "$1/rootcopy/" -maxdepth 1 2>/dev/null)" != "" ]; then
|
||||
echo_green_star
|
||||
echo "Copying content of rootcopy directory..."
|
||||
cp -a "$1/rootcopy/*" "$2"
|
||||
fi
|
||||
}
|
||||
|
||||
# Copy data to RAM if requested
|
||||
# $1 = live data directory
|
||||
# $2 = changes directory
|
||||
|
|
|
|||
Loading…
Reference in New Issue