We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/boot/grub2/grub.cfg
1 parent 532724d commit e944eefCopy full SHA for e944eef
.github/workflows/ci.yml
@@ -86,6 +86,12 @@ jobs:
86
fi
87
sudo ls /mnt/EFI/centos/{grub.cfg,${shim}}
88
sudo umount /mnt
89
+ # check /boot/grub2/grub.cfg permission
90
+ root_part=$(sudo sfdisk -l -J "${device}" | jq -r '.partitiontable.partitions[] | select(.name == "root").node')
91
+ sudo mount "${root_part}" /mnt/
92
+ sudo ls /mnt/boot/grub2/grub.cfg
93
+ [ $(sudo stat -c "%a" /mnt/boot/grub2/grub.cfg) == "600" ]
94
+ sudo umount /mnt
95
sudo losetup -D "${device}"
96
sudo rm -f myimage.raw
97
@@ -99,3 +105,4 @@ jobs:
99
105
--disable-selinux --replace=alongside /target
100
106
# Verify we injected static configs
101
107
jq -re '.["static-configs"].version' /boot/bootupd-state.json
108
+ [ $(sudo stat -c "%a" /boot/grub2/grub.cfg) == "600" ]
0 commit comments