diff --git a/common/snigdhaos-libs/check-snapshot-boot b/common/snigdhaos-libs/check-snapshot-boot new file mode 100644 index 00000000..c6e16221 --- /dev/null +++ b/common/snigdhaos-libs/check-snapshot-boot @@ -0,0 +1,5 @@ +#!/bin/bash +if grep -qE 'subvol=@/.snapshots/[0-9]+/snapshot' /proc/cmdline; then + exit 0 +fi +exit 1