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.
1 parent d128fa3 commit 4e22b50Copy full SHA for 4e22b50
1 file changed
initrd/bin/config-gui.sh
@@ -182,19 +182,21 @@ while true; do
182
\n\nDo you want to proceed?" 0 80) then
183
read_rom /tmp/config-gui.rom
184
# clear local keyring
185
- rm /.gnupg/* | true
+ rm -rf /.gnupg/* || true
186
+
187
# clear /boot signatures/checksums
188
+ detect_boot_device
189
mount -o remount,rw /boot
- rm /boot/kexec* | true
190
+ rm -f /boot/kexec* || true
191
mount -o remount,ro /boot
192
193
# clear GPG keys and user settings
194
for i in `cbfs.sh -o /tmp/config-gui.rom -l | grep -e "heads/"`; do
195
cbfs.sh -o /tmp/config-gui.rom -d $i
196
done
197
# flash cleared ROM
-
198
/bin/flash.sh -c /tmp/config-gui.rom
199
200
# reset TPM if present
201
if [ "$CONFIG_TPM" = "y" ]; then
202
/bin/tpm-reset
0 commit comments