Merge branch 'uuid_fix' into 'main'
Fix UUID awk check See merge request skip/RockyRpi!4
This commit is contained in:
commit
2294723c17
|
@ -40,7 +40,7 @@ kpartx -av "${image}"
|
|||
# Get the loop partition; it might be loop0p3, loop1p3, ...
|
||||
looppart=$(kpartx -l "${image}" | awk '/p3/{print $1}')
|
||||
# Get the UUID of our root partition (the ext4 one) (UUID=e3984938429 , strip out quotes("), and force upper case)
|
||||
partuuid=$(blkid | grep "mapper/${looppart}" | head -1 | awk '{gsub(/\"/,"", $NF); print toupper($0)}')
|
||||
partuuid=$(blkid | grep "mapper/${looppart}" | head -1 | awk '{gsub(/\"/,"", $NF); print toupper($NF)}')
|
||||
|
||||
# Mount the /boot partition (swap the 3rd partition for the first):
|
||||
umount /mnt/tmp
|
||||
|
|
Loading…
Reference in New Issue