From 6e485ccb53176f41244e565d8728fcc8c93db127 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 19 Nov 2025 16:49:59 +0100 Subject: [PATCH] board/common: Skip unused infix-branded symlink to rootfs.squashfs This is an internal artifact, so there is no need to give it a branded name. --- board/common/post-image.sh | 39 -------------------------------------- 1 file changed, 39 deletions(-) diff --git a/board/common/post-image.sh b/board/common/post-image.sh index 86c82c86..b226b484 100755 --- a/board/common/post-image.sh +++ b/board/common/post-image.sh @@ -1,46 +1,7 @@ #!/bin/sh -# shellcheck disable=SC2086 - -common=$(dirname "$(readlink -f "$0")") -. "$common/lib.sh" - -# shellcheck disable=SC1091 -. "$TARGET_DIR/etc/os-release" - -# The INFIX_* variables may be composed from BR2_* variables, -# so we source them last. -load_cfg BR2_ARCH -load_cfg BR2_DEFCONFIG -load_cfg BR2_EXTERNAL_INFIX_PATH -load_cfg BR2_TARGET_ROOTFS -load_cfg INFIX_ID - -# The default IMAGE_ID is infix-$BR2_ARCH but can be overridden -# for imaage names, and compat strings, like infix-r2s -if [ -n "$IMAGE_ID" ]; then - NAME="$IMAGE_ID" -else - NAME="$INFIX_ID"-$(echo "$BR2_ARCH" | tr _ - | sed 's/x86-64/x86_64/') -fi - -ver() -{ - if [ -n "$INFIX_RELEASE" ]; then - printf -- "-%s" "${INFIX_RELEASE#v}" - return - fi -} - -diskimg="${NAME}$(ver).qcow2" # Only for regular builds, not bootloader-only builds if [ "$BR2_TARGET_ROOTFS_SQUASHFS" = "y" ]; then - rel=$(ver) - ln -sf rootfs.squashfs "$BINARIES_DIR/${NAME}${rel}.img" - if [ -n "$rel" ]; then - ln -sf "${NAME}${rel}.img" "$BINARIES_DIR/${NAME}.img" - fi - cp "$BR2_EXTERNAL_INFIX_PATH/board/common/rootfs/usr/bin/onieprom" "$BINARIES_DIR/" # Quick intro for beginners, with links to more information