From 4be932ff9d4daaabf91c1eebc9f46580ce945ea0 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 17 Jan 2022 13:42:36 +0100 Subject: [PATCH] [umount] Now mark deprecated use as an error --- src/modules/umount/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/umount/main.py b/src/modules/umount/main.py index 5fdb36014..f7bb3ca5a 100644 --- a/src/modules/umount/main.py +++ b/src/modules/umount/main.py @@ -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