repart: Don't use loop devices when we're not operating on a block device
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 9 Oct 2022 22:14:17 +0000 (00:14 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 15 Nov 2022 19:23:51 +0000 (20:23 +0100)
commita64769d605b21d183972b585719d99aa2af44977
tree634c4eb7517016c83d4ace5b67cd92aad20f00ec
parent0b34f351d17332d2e5b2c2fbb0124d33fd080a31
repart: Don't use loop devices when we're not operating on a block device

When repart is not operating on a block device, if we avoid using
any loop devices at all, it becomes possible to run repart without
needing root privileges.

Note that this also depends on the filesystems in use to support
population without needing root privileges (specifically, squashfs,
ext4 or btrfs).
src/partition/repart.c