Skip to content

Commit

Permalink
distro/debian: refactor by get_pkg_dir()
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
rli9 committed Feb 5, 2025
1 parent f64c08e commit 9c31e80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distro/debian
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ pack()
find . -xdev |
grep -v -f $LKP_SRC/rootfs/rootfs-strip-list

[[ -f $LKP_SRC/programs/$BM_NAME/pkg/allowlist ]] && cat $LKP_SRC/programs/$BM_NAME/pkg/allowlist
local pkg_dir=$(get_pkg_dir $BM_NAME)
[[ -d $pkg_dir && -f $pkg_dir/allowlist ]] && cat $pkg_dir/allowlist
} |
cpio --quiet -o -H newc --owner=root.root |
gzip -n -9 > $pack_to/${BM_NAME}_$date.cgz || return
Expand Down

0 comments on commit 9c31e80

Please sign in to comment.