diff --git a/config.sh b/config.sh index a473a07..05ffc8f 100644 --- a/config.sh +++ b/config.sh @@ -737,6 +737,9 @@ EOF chmod 644 /etc/default/grub rm -f /boot/dtb + ###set hostname so it can be found on the network + echo "rockyaltarch" > /etc/hostname + cat >/usr/local/bin/rootfs-expand << EOF #!/bin/bash clear @@ -748,7 +751,7 @@ fi dev=\$(echo \$part|sed 's/[0-9]*\$//g') devlen=\${#dev} num=\${part:\$devlen} -if [[ "\$dev" =~ ^/dev/mmcblk[0-9]*p\$ ]];then +if [[ "\$dev" =~ ^/dev/(mmcblk|nvm3[0-9]+n)[0-9]*p\$ ]];then dev=\${dev:0:-1} fi if [ ! -x /usr/bin/growpart ];then