From c1dc484762383f3efe02628386525f26aeaf4407 Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 29 Oct 2024 12:04:39 +0000 Subject: [PATCH] added nvme to rootfs-expand & set hostname --- config.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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