daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Feb 12th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top