Compare commits

..

2 Commits

Author SHA1 Message Date
d3fc7123b5
testing testing testing 2023-07-29 13:29:10 +05:30
a4713b86b0
setup networking nicely 2023-07-29 13:27:37 +05:30
3 changed files with 7 additions and 4 deletions

View File

@ -10,9 +10,9 @@ dnf list installed | grep 'dracut-config-generic' > /dev/null && \
rpm -e dracut-config-generic
# TODO: Add a comment to show what this is doing
if [ -x /lib/kernel/install.d/10-devicetree.install ]; then
/lib/kernel/install.d/10-devicetree.install remove
fi
#if [ -x /lib/kernel/install.d/10-devicetree.install ]; then
# /lib/kernel/install.d/10-devicetree.install remove
#fi
# remove '/boot/dtb' because the kernel should use '/boot/dtb'
if [ -d /boot/dtb ]; then

View File

@ -2,6 +2,9 @@
%post
# Setup networking temporarily
[ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf
# The script that expands root partition
[ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin
curl 'https://git.resf.org/thefossguy/rocky-linux-generic-images/raw/branch/r9/scripts/expand-rootfs.sh' --output /usr/local/bin/expand-rootfs.sh

View File

@ -1,6 +1,6 @@
%pre
# Setup networking temporarily
echo "nameserver 1.1.1.1" > /etc/resolv.conf
[ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf
%end