Skip to content

Commit

Permalink
Run unsquashfs with force flag when merging rootfs
Browse files Browse the repository at this point in the history
This is a temporary fix for an issue that prevents building firmware on
macOS if the Nerves system contains any files with names that collide on
a case-insensitive filesystem like APFS. See nerves-project/nerves#876.

When running `mix firmware`, warnings in the following format may
indicate that some things may not work as expected:

```
Pseudo modify file "path/to/file" does not exist in source filesystem.  Ignoring.
```
  • Loading branch information
bjyoungblood authored and fhunleth committed Jul 30, 2024
1 parent 35fa583 commit 4e839f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/merge-squashfs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ find_to_pseudofile "$overlay_dir" >>pseudofile.in
# remove repeated entries to avoid warnings from mksquashfs
awk '!x[$1]++' pseudofile.in > pseudofile

unsquashfs "$input_squashfs" >/dev/null
unsquashfs -f "$input_squashfs" >/dev/null
cp -Rf "$overlay_dir/." "$workdir/squashfs-root"
mksquashfs squashfs-root "$output_squashfs" -pf pseudofile -sort "$squashfs_priorities" -noappend -no-recovery -no-progress $NERVES_MKSQUASHFS_FLAGS

Expand Down

0 comments on commit 4e839f5

Please sign in to comment.