2bb66b8b9b
- preservefiles generally needs to have the target filesystems mounted, so that it can preserve to them; but you can also configure it such that there is no need for mounted filesystems (e.g. in OEM setup). - Add an example line in CMakeLists.txt to show how that would be done.
15 lines
339 B
CMake
15 lines
339 B
CMake
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
|
|
|
|
calamares_add_plugin( preservefiles
|
|
TYPE job
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
SOURCES
|
|
permissions.cpp
|
|
PreserveFiles.cpp
|
|
LINK_PRIVATE_LIBRARIES
|
|
calamares
|
|
# REQUIRES mount # To set the rootMountPoint
|
|
SHARED_LIB
|
|
EMERGENCY
|
|
)
|