Copy all files from /usr/${target} to /usr

It turns out there are actually several packages that install files to
$SYSROOT instead of $ROOT, not just udev rules.
master
Dustin 2023-03-26 11:52:26 -05:00
parent 0bc861ced1
commit 089b19e412
1 changed files with 2 additions and 4 deletions

View File

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