Skip to content

Commit 1137c8b

Browse files
authored
fix(rpm-ostree): Symlinking /opt/ multiple times caused an error
1 parent d495b6a commit 1137c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/rpm-ostree/rpm-ostree.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [[ ${#OPTFIX[@]} -gt 0 ]]; then
4545
echo "Creating symlinks to fix packages that install to /opt"
4646
# Create symlink for /opt to /var/opt since it is not created in the image yet
4747
mkdir -p "/var/opt"
48-
ln -s "/var/opt" "/opt"
48+
ln -snf "/var/opt" "/opt"
4949
# Create symlinks for each directory specified in recipe.yml
5050
for OPTPKG in "${OPTFIX[@]}"; do
5151
OPTPKG="${OPTPKG%\"}"

0 commit comments

Comments
 (0)