mkimage-profiles/features.in/slinux/rootfs/image-scripts.d/90-sl-cleanup-pkgs

9 lines
244 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh -efu
# remove unneeded packages
# FIXME: Dunno why these packages pulled to rootfs.
# They shouldn't.
list="$(rpmquery -a --qf='%{NAME}\n' systemd-networkd systemd-timesyncd)"
[ -z "$list" ] || apt-get remove -f -y -- $list
: