check /boot/firmware before adding stop

This commit is contained in:
openoms 2024-03-18 16:21:14 +01:00
parent aec80e116e
commit 2e8c8b82dd
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -72,7 +72,7 @@ build {
provisioner "shell" {
inline = [
"if [ \"${var.pack}\" = \"base\" ]; then echo 'Adding stop file to /boot/firmware/'; touch /boot/firmware/stop; fi"
"if [ \"${var.pack}\" = \"base\" ]; then lsblk; ls -la /boot/; echo 'Adding stop file to /boot/firmware/'; touch /boot/firmware/stop; fi"
]
}
}