From fabb0a7fc30fd348629a2544ce48cb55ef25d775 Mon Sep 17 00:00:00 2001 From: Celeste Liu Date: Fri, 8 Dec 2023 21:09:55 +0800 Subject: [PATCH] mkimg: rename to $uuid because it's acutally a UUID Signed-off-by: Celeste Liu --- mkimg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkimg b/mkimg index 1f29668..eae8f30 100755 --- a/mkimg +++ b/mkimg @@ -152,7 +152,7 @@ sudo mkdir -p mnt sudo mount "$partdev" mnt sudo chown root:root mnt -partuuid=$(sudo findmnt mnt -o UUID -n) +uuid=$(sudo findmnt mnt -o UUID -n) msg "Extract rootfs..." @@ -176,13 +176,13 @@ label linux menu label Linux linux kernel /boot/vmlinuz-linux initrd /boot/initramfs-linux.img - append earlyprintk rw root=UUID=$partuuid rootwait console=ttyS0 + append earlyprintk rw root=UUID=$uuid rootwait console=ttyS0 label linux-fallback menu label Linux linux (fallback initramfs) kernel /boot/vmlinuz-linux initrd /boot/initramfs-linux-fallback.img - append earlyprintk rw root=UUID=$partuuid rootwait console=ttyS0 + append earlyprintk rw root=UUID=$uuid rootwait console=ttyS0 EOF cat << EOF | sudo tee mnt/etc/systemd/network/default.network