added nvme to rootfs-expand & set hostname
This commit is contained in:
parent
43dff877cf
commit
c1dc484762
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user