tazwok annotate chroot-scripts/clean-chroot @ rev 559
tazwok: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 09 11:24:59 2021 +0000 (2021-11-09) |
parents | 35ceb7fc85e0 |
children |
rev | line source |
---|---|
gokhlayeh@315 | 1 #!/bin/sh |
gokhlayeh@315 | 2 |
gokhlayeh@315 | 3 # Remove packages which was not in the chroot at creation time. |
gokhlayeh@315 | 4 for pkg in $(ls /var/lib/tazpkg/installed); do |
gokhlayeh@315 | 5 [ -d /var/lib/tazpkg/installed/$pkg ] || continue |
pascal@559 | 6 grep -q ^$pkg$ /var/lib/tazpkg/chroot-pkgs || tazpkg remove $pkg --auto |
gokhlayeh@315 | 7 done |
gokhlayeh@315 | 8 exit 0 |