make_disc_trees: error out if firmware symlink creation fails

Otherwise failures would go unnoticed, logs would pretend firmware-b43-installer
(the first firmware package getting processed) is indeed installed there while
it's not. See next commit.
This commit is contained in:
Cyril Brulebois 2023-01-20 16:22:42 +01:00
parent 47ae1a293b
commit b1cb4c43c2
1 changed files with 2 additions and 1 deletions

View File

@ -1208,7 +1208,8 @@ sub add_firmware_stuff {
}
msg_ap(0, "Symlink fw package $p into /firmware\n");
symlink("../$file", "$dir/firmware/$base_file");
symlink("../$file", "$dir/firmware/$base_file")
or die "unable to create $dir/firmware/$base_file symlink: $!";
msg_ap(0, "Symlink ../$file $dir/firmware/.\n");
if (! -d "$dir/firmware") {
mkdir "$dir/firmware" or die "mkdir $dir/firmware failed $!\n";