cancel
Showing results for 
Search instead for 
Did you mean: 
ZEno
Cadet
Cadet
  • 149 Views

Issue in storage-review lab grading

There is an issue in the grade script for the storage-review lab.

In the step which checks if the swap space is defined in /etc/fstab, it determines the UUID with "lsblk --fs --noheadings" command and takes the fourth argument returned:
UUID=$(lsblk --fs --noheadings /dev/vdb$PART | awk '{print $4}')

But the fourth argument is not always the UUID.
In case a label was assigned with the swaplabel command, the fourth argument will be this label and thus the grading will fail.

Example:

[root@serverb ~]# swaplabel -L swap1 /dev/vdb2
[root@serverb ~]# lsblk --fs --noheadings /dev/vdb2
vdb2 swap 1 swap1 183d3ce9-f21d-4348-b313-f8636debde52 [SWAP]

 

Labels (1)
0 Kudos
0 Replies
Join the discussion
You must log in to join this conversation.