From d982ca73e763bcf18ae45c9359050dd77d6c3d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Fri, 4 Dec 2020 15:04:29 +0100 Subject: [PATCH] Add a postinstall section to leave a trace in the home directory. This PR adds the post-installation section that adds a file in the /home space, which then can be checked by a `preserve_home` post-installation test and prove that it was possible to preserve home on btrfs layouts. --- desktop.ks | 4 ++++ minimal-uefi.ks | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/desktop.ks b/desktop.ks index eacca14..3046f69 100644 --- a/desktop.ks +++ b/desktop.ks @@ -20,3 +20,7 @@ poweroff @^workstation-product-environment -selinux-policy-minimum %end + +%post +touch $INSTALL_ROOT/home/home_preserved +%end diff --git a/minimal-uefi.ks b/minimal-uefi.ks index f32b33a..68aec87 100644 --- a/minimal-uefi.ks +++ b/minimal-uefi.ks @@ -14,3 +14,7 @@ poweroff %packages @core %end + +%post +touch $INSTALL_ROOT/home/home_preserved +%end