summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-05-08 18:44:01 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-05-10 18:07:47 +0200
commite57b7020d2ee89d9c906bcefa091d31b067dedcc (patch)
treee16f23cbadb2ad96a69423c4fce51456d2f74439 /man
parent39a39f18f2bd2b1ef7b4fa4823472d129c514030 (diff)
downloadsystemd-e57b7020d2ee89d9c906bcefa091d31b067dedcc.tar.gz
repart: Fix deny list logic
Until now, we always excluded the top level directories that were covered by child partition mount points, regardless of the source directory and the target directory of the copy files operation. This means that even if we were populating a XBOOTLDR partition, if there was an EFI partition in the image, we'd exclude /boot unconditionally, leading to the XBOOTLDR partition to be empty. Also, because of the same cause, if we were copying a nested source directory (e.g. /abc/def) to the root directory in the root partition, if /abc/def/usr existed and was populated with files and directories, the root partition would have those files under /usr, even if a /usr partition was defined. To fix these issues, instead of unconditionally excluding the top level partition mount points under <source>, let's make sure that when we're copying files from any source directory to the root directory of a root partition, that we exclude the partition mount point directories under the source directory instead of the top level ones.
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions