tests: fix preparation of "small" backup storage in Debian 7

losetup Debian 7 doesn't deal with /dev/loop-control, so needs
existing /dev/loop* devices. Just /dev/loop0 is enough.
This commit is contained in:
Marek Marczykowski-Górecki 2016-02-29 13:22:50 +01:00
parent fae73e6373
commit 8497471a72
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -184,6 +184,8 @@ class TC_10_BackupVMMixin(qubes.tests.BackupTestsMixin):
vms = self.create_backup_vms()
self.backupvm.start()
retcode = self.backupvm.run(
# Debian 7 has too old losetup to handle loop-control device
"mknod /dev/loop0 b 7 0;"
"truncate -s 50M /home/user/backup.img && "
"mkfs.ext4 -F /home/user/backup.img && "
"mkdir /home/user/backup && "