# HG changeset patch # User Aleksej Bobylev # Date 1504869248 -10800 # Node ID 8a23ad1f4426ae4183dd6589d2023f7fb45a4470 # Parent c6ab9a1005489579a4400283cab4dda13f32f062 tazlito: pass /etc/slitaz-release to the rootfs too; add option --stripped to consider packages list already stripped. diff -r c6ab9a100548 -r 8a23ad1f4426 tazlito --- a/tazlito Sat Aug 26 12:05:06 2017 +0300 +++ b/tazlito Fri Sep 08 14:14:08 2017 +0300 @@ -1476,6 +1476,11 @@ # Strip versions from packages list strip_versions() { + if [ -n "$stripped" ]; then + action 'Consider list %s already stripped' "$(basename "$1")" + status + return 0 + fi action 'Strip versions from list %s...' "$(basename "$1")" local in_list="$1" tmp_list="$(mktemp)" namever pkg [ -f "$in_list" ] || die "List '$in_list' not found." @@ -1531,6 +1536,7 @@ tazpkg --root=$rootfs >/dev/null 2>&1 # pass current 'mirror' to the rootfs cp -f /var/lib/tazpkg/mirror $rootfs/var/lib/tazpkg/mirror + cp -f /etc/slitaz-release $rootfs/etc/slitaz-release # link rootfs packages cache to the regular packages cache rm -r "$rootfs/var/cache/tazpkg" ln -s /var/cache/tazpkg "$rootfs/var/cache/tazpkg" @@ -2277,6 +2283,7 @@ # pass current 'mirror' to the root mkdir -p $root/var/lib/tazpkg cp -f /var/lib/tazpkg/mirror $root/var/lib/tazpkg/mirror + cp -f /etc/slitaz-release $root/etc/slitaz-release strip_versions "$LIST_NAME" if [ "$REPACK" == 'y' ]; then