]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: do not fail when CopyBlocks= is used in the initrd
authorLuca Boccassi <luca.boccassi@gmail.com>
Sun, 24 Aug 2025 19:51:23 +0000 (20:51 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Sep 2025 12:23:54 +0000 (14:23 +0200)
commitab0ffca1308240455d6d423490300ea53b873f59
treecca9b8b2de5a9fac7c0a947a146aff6466bb95da
parent28021f6e8897f63a2dedb5c32a09862f9d653a01
repart: do not fail when CopyBlocks= is used in the initrd

When running in the initrd --root= is automatically set to /sysroot or /sysusr
but then using CopyBlocks fails due to a security measure:

root@particle-caba-1e47:~# systemd-repart --dry-run=no /dev/vda
No machine ID set, using randomized partition UUIDs.
Automatic discovery of backing block devices not permitted in --root= mode, refusing.

Follow-up for 5c08da586fc8fe7cda4010e0057cb79ba1d74335
src/repart/repart.c