Fixed hook running in chroot
This commit is contained in:
parent
e3374d38af
commit
c67ca7f88d
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then
|
||||
echo "Skipping hook execution in chroot."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
while read -r line; do
|
||||
version=$(basename "${line%/vmlinuz}")
|
||||
|
|
Loading…
Add table
Reference in a new issue