+ check_destdir
+ '[' -d /mnt/destination ']'
+ save_blkid_state
+ find /dev/mapper -type l
+ xargs -r blkid -c /dev/null
+ populate_fstab
+ '[' '!' -f /tmp/fstab ']'
+ cat /tmp/fstab
+ copy_chroot_binaries
+ useputfile=
+ '[' -x /mnt/destination/usr/share/make-initrd/tools/put-file ']'
+ useputfile=yes
++ mktemp -d /mnt/destination/tmp/copy_chroot_binaries.XXXXXXXXX
+ binddir=/mnt/destination/tmp/copy_chroot_binaries.TTPmPUtrp
+ workdir=/tmp/copy_chroot_binaries.TTPmPUtrp
+ mount --bind / /mnt/destination/tmp/copy_chroot_binaries.TTPmPUtrp
+ for i in '"$MDADM"' '"$LVM"' '"$CRYPTSETUP"'
+ '[' '!' -x /sbin/mdadm -a -x /mnt/destination/sbin/mdadm ']'
+ for i in '"$MDADM"' '"$LVM"' '"$CRYPTSETUP"'
+ '[' '!' -x /sbin/lvm -a -x /mnt/destination/sbin/lvm ']'
+ for i in '"$MDADM"' '"$LVM"' '"$CRYPTSETUP"'
+ '[' '!' -x /sbin/cryptsetup -a -x /mnt/destination/sbin/cryptsetup ']'
+ '[' -e /mnt/destination/etc/lvm/lvm.conf ']'
+ echo 'remount: copying /etc/lvm/lvm.conf'
remount: copying /etc/lvm/lvm.conf
+ '[' -n yes ']'
+ chroot /mnt/destination /usr/share/make-initrd/tools/put-file /tmp/copy_chroot_binaries.TTPmPUtrp /etc/lvm/lvm.conf
+ '[' -n yes ']'
+ umount /mnt/destination/tmp/copy_chroot_binaries.TTPmPUtrp
+ rmdir /mnt/destination/tmp/copy_chroot_binaries.TTPmPUtrp
+ umount_chroot
+ fuser -vv -k -m /mnt/destination
                     USER        PID ACCESS COMMAND
/mnt/destination:    root     kernel mount /mnt/destination
+ '[' -x /sbin/cryptsetup ']'
+ pushd /dev/mapper
/dev/mapper /
+ for i in '*_luks'
+ /sbin/cryptsetup luksClose '*_luks'
Device *_luks is not active.
+ dmsetup remove '*_luks'
device-mapper: remove ioctl on \x2a_luks failed: No such device or address
Command failed
+ popd
/
+ chroot /mnt/destination swapoff -a
+ umount /mnt/destination/dev/pts
umount: /mnt/destination/dev/pts: not mounted
+ chroot /mnt/destination umount -a -v
/run                     : successfully unmounted
/sys                     : ignored
/dev                     : successfully unmounted
/proc                    : ignored
/home                    : successfully unmounted
/                        : successfully unmounted
+ umount -a -v -t fuse.gvfsd-fuse
+ grep -v 'ignored$'
umount: /run/user/500/gvfs: not mounted
/var/run/user/500/gvfs   : successfully unmounted
+ read dev mnt rest
+ grep ' /mnt/destination/' /proc/mounts
+ umount -v /mnt/destination/proc
umount: /mnt/destination/proc unmounted
+ read dev mnt rest
+ umount -v /mnt/destination/sys
umount: /mnt/destination/sys unmounted
+ read dev mnt rest
+ umount -v /mnt/destination
umount: /mnt/destination unmounted
+ reset_devmapper
+ dmsetup remove_all
+ stop_mdraid
+ '[' -f /proc/mdstat -a -x /sbin/mdadm ']'
+ /sbin/mdadm --examine --scan
+ grep '^ARRAY /dev/md[0-9]'
+ /sbin/mdadm --stop --scan
+ reset_devmapper
+ dmsetup remove_all
+ start_luks
+ '[' -x /sbin/cryptsetup ']'
++ blkid -o device
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sda2
+ '[' ext4 = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sda3
+ '[' ext4 = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sda1
+ '[' swap = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/loop0
+ '[' squashfs = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sdb1
+ '[' vfat = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sdb2
+ '[' vfat = crypto_LUKS ']'
+ continue
+ start_mdraid
+ '[' -s /tmp/mdadm.conf -a -x /sbin/mdadm ']'
+ start_lvm
+ '[' -x /sbin/lvm ']'
+ /sbin/lvm pvscan
File descriptor 3 (pipe:[17858]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 4 (pipe:[12618]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 5 (pipe:[12618]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 7 (socket:[17857]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 9 (pipe:[13201]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 10 (pipe:[13201]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 11 (pipe:[13202]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 12 (pipe:[13202]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 34 (pipe:[18635]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 35 (pipe:[18635]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 36 (pipe:[17849]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 37 (pipe:[17849]) leaked on lvm invocation. Parent PID 3803: /bin/sh
  /var/run/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  No matching physical volumes found
+ /sbin/lvm vgscan
File descriptor 3 (pipe:[17858]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 4 (pipe:[12618]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 5 (pipe:[12618]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 7 (socket:[17857]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 9 (pipe:[13201]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 10 (pipe:[13201]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 11 (pipe:[13202]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 12 (pipe:[13202]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 34 (pipe:[18635]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 35 (pipe:[18635]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 36 (pipe:[17849]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 37 (pipe:[17849]) leaked on lvm invocation. Parent PID 3803: /bin/sh
  /var/run/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  Reading all physical volumes.  This may take a while...
+ /sbin/lvm vgchange -ay --noudevsync
File descriptor 3 (pipe:[17858]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 4 (pipe:[12618]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 5 (pipe:[12618]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 7 (socket:[17857]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 9 (pipe:[13201]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 10 (pipe:[13201]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 11 (pipe:[13202]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 12 (pipe:[13202]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 34 (pipe:[18635]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 35 (pipe:[18635]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 36 (pipe:[17849]) leaked on lvm invocation. Parent PID 3803: /bin/sh
File descriptor 37 (pipe:[17849]) leaked on lvm invocation. Parent PID 3803: /bin/sh
  /var/run/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
+ start_luks
+ '[' -x /sbin/cryptsetup ']'
++ blkid -o device
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sda2
+ '[' ext4 = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sda3
+ '[' ext4 = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sda1
+ '[' swap = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/loop0
+ '[' squashfs = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sdb1
+ '[' vfat = crypto_LUKS ']'
+ continue
+ for device in '$(blkid -o device)'
++ blkid -o value -s TYPE /dev/sdb2
+ '[' vfat = crypto_LUKS ']'
+ continue
+ mount_chroot
++ awk '{ if ($2=="/") print $1 }'
+ rootfs=UUID=692be31d-c865-4c81-9bb6-fa371c0dc529
+ case "$rootfs" in
++ blkid -U 692be31d-c865-4c81-9bb6-fa371c0dc529
+ rootfs=/dev/sda2
+ mount -v /dev/sda2 /mnt/destination
mount: /dev/sda2 mounted on /mnt/destination.
+ mount -v -o bind /dev /mnt/destination/dev
mount: /dev bound on /mnt/destination/dev.
+ mount -v -t sysfs sysfs /mnt/destination/sys
mount: sysfs mounted on /mnt/destination/sys.
+ mount -v -t proc proc /mnt/destination/proc
mount: proc mounted on /mnt/destination/proc.
+ '[' -d /run/udev ']'
+ mkdir -p /mnt/destination/run/udev
+ mount -v -o bind /run/udev /mnt/destination/run/udev
mount: /run/udev bound on /mnt/destination/run/udev.
+ chroot /mnt/destination mount -a -v
/proc                    : already mounted
/dev/pts                 : successfully mounted
/tmp                     : successfully mounted
/                        : ignored
/                        : ignored
/home                    : successfully mounted
swap                     : ignored
+ chroot /mnt/destination swapon -a
