Exclude more extraneous files from rootfs image

This commit is contained in:
2023-02-14 00:30:32 -06:00
parent 0b6edeeed7
commit d4fdb36d45
2 changed files with 15 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ tar -c -C overlay . \
cp -uv /usr/${target}/usr/bin/grub-editenv /mnt/gentoo/usr/bin/
find /mnt/gentoo/usr/${target}/usr/lib/udev/rules.d \
-name '*.rules' \
-exec mv -t /mnt/gentoo/usr/lib/udev/rules.d/ {} +
if [ -f /mnt/gentoo/etc/udev/hwdb.bin ]; then
mv /mnt/gentoo/etc/udev/hwdb.bin /mnt/gentoo/usr/lib/udev/
fi