mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix intendation and add ignoremonitor to lvm2
This commit is contained in:
parent
f3889f59c1
commit
27d5b5e3d4
1 changed files with 8 additions and 8 deletions
|
@ -12,20 +12,20 @@ run_hook ()
|
|||
/bin/mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')
|
||||
fi
|
||||
|
||||
# If the lvmwait= parameter has been specified on the command line
|
||||
# wait for the device(s) before trying to activate the volume group(s)
|
||||
if [ -n "${lvmwait}" ]; then
|
||||
for pvdev in $(echo ${lvmwait} | sed 's|,| |g'); do
|
||||
poll_device ${pvdev} ${rootdelay}
|
||||
done
|
||||
fi
|
||||
# If the lvmwait= parameter has been specified on the command line
|
||||
# wait for the device(s) before trying to activate the volume group(s)
|
||||
if [ -n "${lvmwait}" ]; then
|
||||
for pvdev in $(echo ${lvmwait} | sed 's|,| |g'); do
|
||||
poll_device ${pvdev} ${rootdelay}
|
||||
done
|
||||
fi
|
||||
|
||||
[ "${quiet}" = "y" ] && LVMQUIET=">/dev/null"
|
||||
|
||||
msg "Scanning logical volumes..."
|
||||
eval /sbin/lvm vgscan --ignorelockingfailure $LVMQUIET
|
||||
msg "Activating logical volumes..."
|
||||
eval /sbin/lvm vgchange --ignorelockingfailure -ay $LVMQUIET
|
||||
eval /sbin/lvm vgchange --ignorelockingfailure --ignoremonitoring -ay $LVMQUIET
|
||||
fi
|
||||
else
|
||||
msg ":: Skipping already run by arch_root_advanced hook..."
|
||||
|
|
Loading…
Reference in a new issue