[sys handler] MBR backups include loopback devices mounted by snaps
I have some snaps installed on ubuntu and using mbr = yes
results in too many unwanted mbr backups:
Debug: Will try to backup MBR tables for device /dev/loop0
Debug: /bin/dd if=/dev/loop0 of=/var/backups/mbr.loop0.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop1
Debug: /bin/dd if=/dev/loop1 of=/var/backups/mbr.loop1.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop2
Debug: /bin/dd if=/dev/loop2 of=/var/backups/mbr.loop2.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop3
Debug: /bin/dd if=/dev/loop3 of=/var/backups/mbr.loop3.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop4
Debug: /bin/dd if=/dev/loop4 of=/var/backups/mbr.loop4.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop5
Debug: /bin/dd if=/dev/loop5 of=/var/backups/mbr.loop5.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop6
Debug: /bin/dd if=/dev/loop6 of=/var/backups/mbr.loop6.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop7
Debug: /bin/dd if=/dev/loop7 of=/var/backups/mbr.loop7.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/sda
Debug: /bin/dd if=/dev/sda of=/var/backups/mbr.sda.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/mapper/sda5_crypt
Debug: /bin/dd if=/dev/mapper/sda5_crypt of=/var/backups/mbr.mapper-sda5_crypt.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/mapper/ubuntu--vg-root
Debug: /bin/dd if=/dev/mapper/ubuntu--vg-root of=/var/backups/mbr.mapper-ubuntu--vg-root.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/mapper/ubuntu--vg-swap_1
Debug: /bin/dd if=/dev/mapper/ubuntu--vg-swap_1 of=/var/backups/mbr.mapper-ubuntu--vg-swap_1.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/mapper/ubuntu--vg-home
Debug: /bin/dd if=/dev/mapper/ubuntu--vg-home of=/var/backups/mbr.mapper-ubuntu--vg-home.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop8
Debug: /bin/dd if=/dev/loop8 of=/var/backups/mbr.loop8.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop9
Debug: /bin/dd if=/dev/loop9 of=/var/backups/mbr.loop9.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop10
Debug: /bin/dd if=/dev/loop10 of=/var/backups/mbr.loop10.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop11
Debug: /bin/dd if=/dev/loop11 of=/var/backups/mbr.loop11.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop12
Debug: /bin/dd if=/dev/loop12 of=/var/backups/mbr.loop12.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop13
Debug: /bin/dd if=/dev/loop13 of=/var/backups/mbr.loop13.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop14
Debug: /bin/dd if=/dev/loop14 of=/var/backups/mbr.loop14.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop15
Debug: /bin/dd if=/dev/loop15 of=/var/backups/mbr.loop15.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop16
Debug: /bin/dd if=/dev/loop16 of=/var/backups/mbr.loop16.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop17
Debug: /bin/dd if=/dev/loop17 of=/var/backups/mbr.loop17.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop18
Debug: /bin/dd if=/dev/loop18 of=/var/backups/mbr.loop18.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop19
Debug: /bin/dd if=/dev/loop19 of=/var/backups/mbr.loop19.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop20
Debug: /bin/dd if=/dev/loop20 of=/var/backups/mbr.loop20.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop21
Debug: /bin/dd if=/dev/loop21 of=/var/backups/mbr.loop21.bin bs=512 count=1 2>/dev/null
Debug: Will try to backup MBR tables for device /dev/loop22
Debug: /bin/dd if=/dev/loop22 of=/var/backups/mbr.loop22.bin bs=512 count=1 2>/dev/null
…
These loopback devices are created by snaps:
# mount | grep snap
/var/lib/snapd/snaps/shellcheck_797.snap on /snap/shellcheck/797 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/chromium_937.snap on /snap/chromium/937 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/atom_238.snap on /snap/atom/238 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/subliminal-subtitles_34.snap on /snap/subliminal-subtitles/34 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-28-1804_91.snap on /snap/gnome-3-28-1804/91 type squashfs (ro,nodev,relatime,x-gdu.hide)
…