cdist/hacking/v2-initramfs-from-os/filelist_from_package.sh
Nico Schottelius 7ba6c0a44a can generate initramfs from busybox
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
2015-05-19 11:06:54 +02:00

19 lines
787 B
Bash
Executable file

#!/bin/sh
# Generate filelist excluding stuff that takes only space
(
for pkg in systemd openssh \
bash bzip2 coreutils cryptsetup device-mapper dhcpcd \
diffutils e2fsprogs file filesystem findutils gawk \
gettext glibc grep gzip inetutils iproute2 \
iputils jfsutils less licenses linux logrotate lvm2 \
man-db man-pages mdadm nano pacman pciutils \
pcmciautils perl procps-ng psmisc reiserfsprogs \
s-nail sed shadow sysfsutils systemd-sysvcompat tar \
texinfo usbutils util-linux vi which xfsprogs \
; do
pacman -Qlq $pkg | grep -v \
-e /usr/share/man/ \
-e /usr/share/doc/
done
) | sort | uniq