]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Don't unpack extra/skeleton archives if a target is provided 1615/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 7 Jun 2023 12:01:51 +0000 (14:01 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 7 Jun 2023 12:01:51 +0000 (14:01 +0200)
commit304f2212f6a130c2af3fa7f4a29f17e77d666aa0
tree0dc51c686209dd54cc5e01b93bf77e5f0797659a
parent13fdab0a0a9b8e34f7776c716ab4dbdee15d5255
Don't unpack extra/skeleton archives if a target is provided

ExtraTrees= and SkeletonTrees= are currently ambiguous when a target
location is provided. The user could either mean that the archive has
to be unpacked to the target location or the user could mean that he
wants to copy the archive to that location in the image.

We should still try to resolve the ambiguity, but for now, let's assume
that when a target is provided that the user wants to copy the archive
into the image instead of unpacking the archive to that specific location.

To make this work, we also modify the logic slightly to create only the
parent directories of the target so that cp doesn't fail because we try
to copy a file to a directory.
mkosi/__init__.py