rootfsinstall.sh: support for /etc/resolv.conf as systemd symlink; rpi4: enable fkms overlay

This commit is contained in:
Silvan Calarco 2021-04-27 00:07:51 +02:00
parent de8deb26fa
commit f58045a760

View File

@ -452,8 +452,10 @@ if [ "$SETHOSTNAME" ]; then
fi fi
if [ "$INSTALLPACKAGES" -a "$LOCALONLY" != "1" -a ! "${IMAGEMODE}" ]; then if [ "$INSTALLPACKAGES" -a "$LOCALONLY" != "1" -a ! "${IMAGEMODE}" ]; then
mv $ROOTMP/etc/resolv.conf $ROOTMP/etc/resolv.conf.rootfsinstall if [ ! -L $ROOTMP/etc/resolv.conf ]; then
cp /etc/resolv.conf $ROOTMP/etc/resolv.conf mv $ROOTMP/etc/resolv.conf $ROOTMP/etc/resolv.conf.rootfsinstall
cp /etc/resolv.conf $ROOTMP/etc/resolv.conf
fi
chroot $ROOTMP bash -c /etc/profile.d/gpg-key-openmamba.sh chroot $ROOTMP bash -c /etc/profile.d/gpg-key-openmamba.sh
#chroot $ROOTMP smart channel --enable devel-kernel #chroot $ROOTMP smart channel --enable devel-kernel
chroot $ROOTMP rpm --rebuilddb || { chroot $ROOTMP rpm --rebuilddb || {
@ -470,7 +472,7 @@ if [ "$INSTALLPACKAGES" -a "$LOCALONLY" != "1" -a ! "${IMAGEMODE}" ]; then
exit 1 exit 1
} }
#chroot $ROOTMP smart channel --disable devel-kernel #chroot $ROOTMP smart channel --disable devel-kernel
mv $ROOTMP/etc/resolv.conf.rootfsinstall $ROOTMP/etc/resolv.conf [ -e $ROOTMP/etc/resolv.conf.rootfsinstall ] && mv $ROOTMP/etc/resolv.conf.rootfsinstall $ROOTMP/etc/resolv.conf
fi fi
if [ "$REMOVEPACKAGES" -a ! "${IMAGEMODE}" ]; then if [ "$REMOVEPACKAGES" -a ! "${IMAGEMODE}" ]; then
@ -599,7 +601,10 @@ framebuffer_ignore_alpha=1
dtparam=audio=on" > $BOOTMP/config.txt dtparam=audio=on" > $BOOTMP/config.txt
if [ "$TARGETDEVICE" = "rpi64" ]; then if [ "$TARGETDEVICE" = "rpi64" ]; then
echo "arm_64bit=1" >> $BOOTMP/config.txt echo "\
gpu_mem=128
dtoverlay=vc4-fkms-v3d
arm_64bit=1" >> $BOOTMP/config.txt
fi fi
## Enable HDMI mode rather than DVI, if required ## Enable HDMI mode rather than DVI, if required
#echo "\ #echo "\