+ check_destdir
+ '[' -d /mnt/destination ']'
+ save_blkid_state
+ xargs -r blkid -c /dev/null
+ find /dev/mapper -type l
+ 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.FzUaO3Rnm
+ workdir=/tmp/copy_chroot_binaries.FzUaO3Rnm
+ mount --bind / /mnt/destination/tmp/copy_chroot_binaries.FzUaO3Rnm
+ for i in '"$MDADM"' '"$LVM"' '"$CRYPTSETUP"'
+ '[' '!' -x /sbin/mdadm -a -x /mnt/destination/sbin/mdadm ']'
+ echo 'remount: copying /sbin/mdadm'
remount: copying /sbin/mdadm
+ '[' -n yes ']'
+ chroot /mnt/destination /usr/share/make-initrd/tools/put-file /tmp/copy_chroot_binaries.FzUaO3Rnm /sbin/mdadm
+ for i in '"$MDADM"' '"$LVM"' '"$CRYPTSETUP"'
+ '[' '!' -x /sbin/lvm -a -x /mnt/destination/sbin/lvm ']'
+ echo 'remount: copying /sbin/lvm'
remount: copying /sbin/lvm
+ '[' -n yes ']'
+ chroot /mnt/destination /usr/share/make-initrd/tools/put-file /tmp/copy_chroot_binaries.FzUaO3Rnm /sbin/lvm
+ for i in '"$MDADM"' '"$LVM"' '"$CRYPTSETUP"'
+ '[' '!' -x /sbin/cryptsetup -a -x /mnt/destination/sbin/cryptsetup ']'
+ echo 'remount: copying /sbin/cryptsetup'
remount: copying /sbin/cryptsetup
+ '[' -n yes ']'
+ chroot /mnt/destination /usr/share/make-initrd/tools/put-file /tmp/copy_chroot_binaries.FzUaO3Rnm /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.FzUaO3Rnm /etc/lvm/lvm.conf
+ '[' -n yes ']'
+ umount /mnt/destination/tmp/copy_chroot_binaries.FzUaO3Rnm
+ rmdir /mnt/destination/tmp/copy_chroot_binaries.FzUaO3Rnm
+ 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
+ chroot /mnt/destination umount -a -v
/tmp/alterator           : successfully unmounted
/sys                     : ignored
/proc                    : ignored
/dev                     : successfully unmounted
/var                     : successfully unmounted
/home                    : successfully unmounted
/boot                    : successfully unmounted
/                        : successfully unmounted
+ umount -a -v -t fuse.gvfsd-fuse
/mnt/destination/sys     : ignored
/mnt/destination/proc    : ignored
/mnt/destination         : ignored
/dev/shm                 : ignored
/dev/pts                 : ignored
/run                     : ignored
/mnt                     : ignored
/tmp                     : ignored
/sys                     : ignored
/proc                    : ignored
/                        : ignored
/.rw                     : ignored
/.ro                     : ignored
/image                   : ignored
/dev                     : ignored
+ cat /proc/mounts
udevfs /dev devtmpfs rw,relatime,size=5120k,nr_inodes=244343,mode=755 0 0
/dev/sr0 /image iso9660 ro,relatime 0 0
/dev/loop0 /.ro squashfs ro,relatime 0 0
none /.rw tmpfs rw,relatime,mode=755 0 0
none / aufs rw,relatime,si=f1aa51994c1ef52b 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime 0 0
tmpfs /mnt tmpfs rw,relatime 0 0
runfs /run tmpfs rw,relatime,size=5120k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
shmfs /dev/shm tmpfs rw,relatime 0 0
/dev/evms/lvm2/vg_slen/tmproot /mnt/destination ext4 ro,relatime,data=ordered 0 0
proc /mnt/destination/proc proc rw,relatime 0 0
sysfs /mnt/destination/sys sysfs rw,relatime 0 0
+ grep ' /mnt/destination/' /proc/mounts
+ read dev mnt rest
+ 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
+ mountpoint /mnt/destination
/mnt/destination is a mountpoint
+ 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_multipath
+ '[' -x /sbin/multipathd ']'
+ start_luks
+ '[' -x /sbin/cryptsetup ']'
++ blkid -c /dev/null -o device
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/loop0
+ '[' squashfs = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/sda1
+ '[' swap = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/sda2
+ '[' ext2 = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/sda3
+ '[' LVM2_member = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/sr0
+ '[' iso9660 = 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:[45414]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 4 (pipe:[8001]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 6 (socket:[45413]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 8 (pipe:[8005]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 9 (pipe:[8005]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 10 (pipe:[7003]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 11 (pipe:[7003]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 34 (pipe:[9130]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 35 (pipe:[9130]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 36 (pipe:[11266]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 37 (pipe:[11266]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 38 (pipe:[11272]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 39 (pipe:[11272]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 40 (pipe:[11274]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 41 (pipe:[11274]) leaked on lvm invocation. Parent PID 30377: /bin/sh
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  PV /dev/sda3   VG vg_slen         lvm2 [923.01 GiB / 225.30 GiB free]
  Total: 1 [923.01 GiB] / in use: 1 [923.01 GiB] / in no VG: 0 [0   ]
+ /sbin/lvm vgscan
File descriptor 3 (pipe:[45414]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 4 (pipe:[8001]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 6 (socket:[45413]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 8 (pipe:[8005]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 9 (pipe:[8005]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 10 (pipe:[7003]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 11 (pipe:[7003]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 34 (pipe:[9130]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 35 (pipe:[9130]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 36 (pipe:[11266]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 37 (pipe:[11266]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 38 (pipe:[11272]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 39 (pipe:[11272]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 40 (pipe:[11274]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 41 (pipe:[11274]) leaked on lvm invocation. Parent PID 30377: /bin/sh
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  Reading all physical volumes.  This may take a while...
  Found volume group "vg_slen" using metadata type lvm2
+ /sbin/lvm vgchange -ay --noudevsync
File descriptor 3 (pipe:[45414]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 4 (pipe:[8001]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 6 (socket:[45413]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 8 (pipe:[8005]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 9 (pipe:[8005]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 10 (pipe:[7003]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 11 (pipe:[7003]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 34 (pipe:[9130]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 35 (pipe:[9130]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 36 (pipe:[11266]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 37 (pipe:[11266]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 38 (pipe:[11272]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 39 (pipe:[11272]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 40 (pipe:[11274]) leaked on lvm invocation. Parent PID 30377: /bin/sh
File descriptor 41 (pipe:[11274]) leaked on lvm invocation. Parent PID 30377: /bin/sh
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  3 logical volume(s) in volume group "vg_slen" now active
+ start_luks
+ '[' -x /sbin/cryptsetup ']'
++ blkid -c /dev/null -o device
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/loop0
+ '[' squashfs = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/sda1
+ '[' swap = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/sda2
+ '[' ext2 = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/sda3
+ '[' LVM2_member = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/sr0
+ '[' iso9660 = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/mapper/vg_slen-tmproot
+ '[' ext4 = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/mapper/vg_slen-tmphome
+ '[' ext4 = crypto_LUKS ']'
+ continue
+ for device in '$($BLKID -o device)'
++ blkid -c /dev/null -o value -s TYPE /dev/mapper/vg_slen-tmpvar
+ '[' ext4 = crypto_LUKS ']'
+ continue
+ mount_chroot
++ awk '{ if ($2=="/") print $1 }'
+ rootfs=UUID=aa697fd0-466e-4fb7-ab26-8c683e59225b
+ case "$rootfs" in
++ blkid -c /dev/null -U aa697fd0-466e-4fb7-ab26-8c683e59225b
+ rootfs=/dev/mapper/vg_slen-tmproot
+ '[' -z /mnt/destination ']'
+ mount -v /dev/mapper/vg_slen-tmproot /mnt/destination
mount: /dev/mapper/vg_slen-tmproot 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
/boot                    : successfully mounted
/home                    : successfully mounted
/var                     : successfully mounted
swap                     : ignored
+ chroot /mnt/destination swapon -a
+ set_active
++ df -l --output=source /mnt/destination/boot
++ tail -1
+ BOOTDEV=/dev/sda2
+ '[' -n /dev/sda2 ']'
+ BOOTDEV=sda2
+ case "$BOOTDEV" in
+ '[' -n sda2 ']'
+ for d in '$BOOTDEV'
+ sfdisk -q -A /dev/sda 2
Re-reading the partition table failed.: Device or resource busy
