1 |
From: Daniel Cordero <catalyst@××××.io> |
2 |
|
3 |
sys-fs/squashfs-tools-ng is keyworded as unstable. Stable squashfs users |
4 |
can still use mksquashfs to create the squashed image. |
5 |
|
6 |
Fixes: 23e9ea10 "targets: Use gensquashfs instead of mksquashfs" |
7 |
|
8 |
Signed-off-by: Daniel Cordero <catalyst@××××.io> |
9 |
--- |
10 |
|
11 |
I have not fixed targets/embedded/fs-runscript.sh from the referenced |
12 |
commit. |
13 |
|
14 |
|
15 |
targets/support/target_image_setup.sh | 9 +++++++-- |
16 |
1 file changed, 7 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/targets/support/target_image_setup.sh b/targets/support/target_image_setup.sh |
19 |
index fdc4a234..23150f13 100755 |
20 |
--- a/targets/support/target_image_setup.sh |
21 |
+++ b/targets/support/target_image_setup.sh |
22 |
@@ -7,8 +7,13 @@ mkdir -p "${1}" |
23 |
echo "Creating ${clst_fstype} filesystem" |
24 |
case ${clst_fstype} in |
25 |
squashfs) |
26 |
- gensquashfs -D "${clst_destpath}" -q ${clst_fsops} "${1}/image.squashfs" \ |
27 |
- || die "Failed to create squashfs filesystem" |
28 |
+ if command -v mksquashfs; then |
29 |
+ mksquashfs "${clst_destpath}" "$1/image.squashfs" ${clst_fsops} -noappend \ |
30 |
+ || die "mksquashfs failed" |
31 |
+ else |
32 |
+ gensquashfs -D "${clst_destpath}" -q ${clst_fsops} "${1}/image.squashfs" \ |
33 |
+ || die "Failed to create squashfs filesystem" |
34 |
+ fi |
35 |
;; |
36 |
jffs2) |
37 |
mkfs.jffs2 --root="${clst_destpath}" --output="${1}/image.jffs" "${clst_fsops}" \ |
38 |
-- |
39 |
2.26.2 |