[umount] Now mark deprecated use as an error

This commit is contained in:
Adriaan de Groot 2022-01-17 13:42:36 +01:00
parent 8eb7eb8b1f
commit 4be932ff9d

View File

@ -77,10 +77,13 @@ def run():
"""
root_mount_point = libcalamares.globalstorage.value("rootMountPoint")
if(libcalamares.job.configuration and
"srcLog" in libcalamares.job.configuration or
"destLog" in libcalamares.job.configuration):
libcalamares.utils.error("Log-file preserving is **deprecated** in the *umount* module and removed in the next release")
if(libcalamares.job.configuration and
"srcLog" in libcalamares.job.configuration and
"destLog" in libcalamares.job.configuration):
libcalamares.utils.warning("Log-file preserving is **deprecated** in the *umount* module")
log_source = libcalamares.job.configuration["srcLog"]
log_destination = libcalamares.job.configuration["destLog"]
# Relocate log_destination into target system