lorax/src
Brian C. Lane 7bc818507c Make sure loop device is setup (#1462150)
It seems that on rare occasions losetup can return before the /dev/loopX
is ready for use, causing problems with mkfs. This tries to make sure
that the loop device really is associated with the backing file before
continuing.

NOTE that using losetup --list -O to return the backing store
associated with the loop device can fail due to losetup truncating
the output filename if sysfs isn't setup. Instead of printing the full
path it will truncate it to 64 characters with a * at the end.

See util-linux lib/loopdev.c for the code that does this.

Use the existing get_loop_name function, which uses losetup -j, to lookup
the loop device associated with the backing store which should work the
same, just in the opposite direction.
2017-08-14 09:20:42 -07:00
..
bin image-minimizer: Fix argument parsing 2016-03-29 09:44:53 -07:00
pylorax Make sure loop device is setup (#1462150) 2017-08-14 09:20:42 -07:00
sbin Add --noverifyssl to lorax (#1430483) 2017-03-08 13:27:22 -08:00