Skip to content

Instantly share code, notes, and snippets.

@esamattis
Created February 28, 2014 10:38
Show Gist options
  • Save esamattis/9268864 to your computer and use it in GitHub Desktop.
Save esamattis/9268864 to your computer and use it in GitHub Desktop.
# /usr/share/initramfs-tools/scripts/init-premount/lvmfix
[ "$1" = "prereqs" ] && exit 0
echo "trying to fix lvm"
set -x
sleep 60
/sbin/lvm vgscan
/sbin/lvm vgchange -a y --sysinit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment