Bug#805709: systemd: some lvm2 logical volumes not starting up

Martin Pitt mpitt at debian.org
Fri Dec 4 06:05:36 GMT 2015


Hey Brian,

Brian Minton [2015-12-03 13:44 -0500]:
> I removed all the udev overrides, rebuilt the initramfs, and rebooted.  Now
> udev-delta does not show any overrides.  However, the problem of dropping
> into emergency mode, and needing 'vgchange -ay' to continue, is still going
> on.

This sounds similar to https://launchpad.net/bugs/1185394 . Can you
try to replace /usr/share/initramfs-tools/scripts/init-bottom/udev
with the attached file, run "update-initramfs -u" and check again?

Thanks!

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
#!/bin/sh -e

PREREQS=""

prereqs() { echo "$PREREQS"; }

case "$1" in
    prereqs)
    prereqs
    exit 0
    ;;
esac

# we cannot properly synthesize LVM LV change events with udevadm trigger, so
# if we use LVM, we need to let it finish; otherwise we get missing LV symlinks
# (LP #1185394)
if [ -x /sbin/vgchange ]; then
    udevadm settle --timeout=121 || true
fi

# Stop udevd, we'll miss a few events while we run init, but we catch up
udevadm control --timeout=121 --exit || \
            echo "udev exit failed -- rc=$?"

# move the /dev tmpfs to the rootfs
mount -n -o move /dev ${rootmnt}/dev

# create a temporary symlink to the final /dev for other initramfs scripts
rm -rf /dev
ln -s ${rootmnt}/dev /dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20151204/bf7f2f19/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list