* udev: don't set the STARTUP flag anymore, since LVM no longer uses
it. * Don't call "vgscan" anymore; VG scans are supposed to be automatic. svn path=/nixos/trunk/; revision=33275
This commit is contained in:
parent
81655b7247
commit
533448ae37
@ -1,4 +1,4 @@
|
||||
{pkgs, config, ...}:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
with pkgs.lib;
|
||||
|
||||
@ -260,13 +260,9 @@ in
|
||||
''
|
||||
# Let udev create device nodes for all modules that have already
|
||||
# been loaded into the kernel (or for which support is built into
|
||||
# the kernel). The `STARTUP' variable is needed to force
|
||||
# the LVM rules to create device nodes. See
|
||||
# http://www.mail-archive.com/fedora-devel-list@redhat.com/msg10261.html
|
||||
udevadm control --env=STARTUP=1
|
||||
# the kernel).
|
||||
udevadm trigger --action=add
|
||||
udevadm settle || true # wait for udev to finish
|
||||
udevadm control --env=STARTUP=
|
||||
|
||||
initctl emit -n new-devices
|
||||
'';
|
||||
|
@ -135,10 +135,8 @@ export UDEV_CONFIG_FILE=@udevConf@
|
||||
mkdir -p /dev/.udev # !!! bug in udev?
|
||||
mkdir -p /dev/.mdadm
|
||||
udevd --daemon
|
||||
udevadm control --env=STARTUP=1
|
||||
udevadm trigger --action=add
|
||||
udevadm settle || true
|
||||
udevadm control --env=STARTUP=
|
||||
|
||||
|
||||
# XXX: Use case usb->lvm will still fail, usb->luks->lvm is covered
|
||||
@ -146,7 +144,6 @@ udevadm control --env=STARTUP=
|
||||
|
||||
|
||||
echo "starting device mapper and LVM..."
|
||||
lvm vgscan
|
||||
lvm vgchange -ay
|
||||
|
||||
if test -n "$debug1devices"; then fail; fi
|
||||
|
@ -11,10 +11,6 @@
|
||||
|
||||
script =
|
||||
''
|
||||
# Scan for block devices that might contain LVM physical volumes
|
||||
# and volume groups.
|
||||
${pkgs.lvm2}/sbin/vgscan
|
||||
|
||||
# Make all logical volumes on all volume groups available, i.e.,
|
||||
# make them appear in /dev.
|
||||
${pkgs.lvm2}/sbin/vgchange --available y
|
||||
|
Loading…
Reference in New Issue
Block a user