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
parent
0bc861ced1
commit
089b19e412
|
@ -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
|
||||||
|
|
Reference in New Issue