Guest User

Untitled

a guest
Feb 12th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. root@archiso ~ # cat /usr/lib/initcpio/hooks/lvm2
  2. #!/usr/bin/ash
  3.  
  4. run_hook() {
  5. local pvdev
  6.  
  7. modprobe -q dm-mod >/dev/null 2>&1
  8.  
  9. # If the lvmwait= parameter has been specified on the command line
  10. # wait for the device(s) before trying to activate the volume group(s)
  11. for pvdev in ${lvmwait//,/ }; do
  12. poll_device ${pvdev} ${rootdelay}
  13. done
  14.  
  15. msg "Activating logical volumes..."
  16. [ -d /etc/lvm ] && lvm vgscan
  17.  
  18. if [ -n "$quiet" ]; then
  19. lvm vgchange --sysinit -a y >/dev/null
  20. else
  21. lvm vgchange --sysinit -a y
  22. fi
  23. }
  24.  
  25. # vim: set ft=sh ts=4 sw=4 et:
Add Comment
Please, Sign In to add comment