Open miabbott opened 3 years ago
This... did work at some point during development. :)
I started looking at this, but first I need to make it smarter so it doesn't even try to download packages which are already present. At least cosa won't hit this because it always nukes the output dir first.
Hey @jlebon , I recently ran into this (or, at least, a similar issue since I am not using extensions) when trying to compose an rpm-ostree tree with the wine
package. Creating a hard link is not working. I get this error: linkat: File exists
The issue I ran into is actually with the unixODBC.i686
package but I tried (1) only installing unixODBC.i686
, (2) only installing unixODBC.x86_64
, and (3) installing both of them. The issue never showed up doing any of those. It only showed up when installing wine
.
Commands to reproduce:
git clone --branch f38 https://pagure.io/workstation-ostree-config.git
cd workstation-ostree-config
export WORKDIR="/root/tmp"
sudo -E mkdir -p ${WORKDIR}/cache ${WORKDIR}/repo
sudo -E ostree --repo=${WORKDIR}/repo init --mode=archive-z2
cat <<EOF > fedora-silverblue-unixodbc.yaml
---
include: fedora-silverblue.yaml
releasever: "38"
packages:
- wine
EOF
sudo -E rpm-ostree compose tree --unified-core --cachedir=${WORKDIR}/cache --repo=${WORKDIR}/repo fedora-silverblue-unixodbc.yaml
Last few lines of output:
Input state hash: 6b84d1d1bad57c8bbf3903b1760e1fa8740126e7eac6163272b56b71e4295a74
Relabeling...done
Checking out packages...done
error: Checkout unixODBC-2.3.11-2.fc38.i686: Copy checkout of 4d252bc079de54d3fbb732ca336c66eca45c6ae6704ed5761480ff87a5313466 to odbc.ini: linkat: File exists
As a short-term workaround, I can do a build without --unified-core
but then it tells me that not using it is deprecated.
NOTICE: Running rpm-ostree compose tree without --unified-core is deprecated.
Please add --unified-core to the command line and ensure your content
works with it. For more information, see https://github.com/coreos/rpm-ostree/issues/729
Potentially related:
Actually, for my production build, I cannot get rid of --unified-core
because I am using modules.
NOTICE: treefile key `modules` is experimental and subject to change
rpm-ostree version: 2023.7
error: Composing with modules requires --unified-core
It sounds like modularity in Fedora is going to be removed soon. I am not sure if that is just for Fedora itself or for all managed DNF repositories long-term, too. As another workaround, I can download the packages and re-host them as a non-modular repository.
@LukeShortCloud That seems like a separate bug. Can you file a new issue?
On Fedora 33 SB, using
rpm-ostree-2021.2-2
asroot
:I had built an ostree commit and then an extensions ostree commit. I changed
extensions.yaml
to include a new extension andrpm-ostree
barked at me: