From d2d51c9179b14b212ba46f6680e508699bbbcd5f Mon Sep 17 00:00:00 2001 From: James Addison Date: Sun, 12 Mar 2023 18:39:40 +0000 Subject: [PATCH] firmware: use hard links rather than symlinks When creating on-disc firmware links, use the same link creation logic as archive-area links Closes #1031696 --- tools/make_disc_trees.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/make_disc_trees.pl b/tools/make_disc_trees.pl index 204c6193..8b9ce9fb 100755 --- a/tools/make_disc_trees.pl +++ b/tools/make_disc_trees.pl @@ -1239,10 +1239,9 @@ sub add_firmware_stuff { $blocks_added += get_file_blocks("$dir/firmware/dep11/README.txt"); } - msg_ap(0, "Symlink fw package $p into /firmware\n"); - symlink("../$file", "$dir/firmware/$base_file") - or die "unable to create $dir/firmware/$base_file symlink: $!"; - msg_ap(0, "Symlink ../$file $dir/firmware/.\n"); + msg_ap(0, "Link fw package $p into /firmware\n"); + $blocks_added += good_link("$dir/firmware/../$file", "$dir/firmware/$base_file"); + msg_ap(0, "Link ../$file $dir/firmware/.\n"); # Cope with maybe having the patterns file already # (e.g. multi-arch), in which case we'll replace it here