live-bootstrap icon indicating copy to clipboard operation
live-bootstrap copied to clipboard

Create disk images without root

Open eduardosm opened this issue 2 years ago • 1 comments

mke2fs has a -d option that allows to populate the newly created filesystem without needing to temporarily mount it. That allows to use parted and mkfs.ext3 on regular files without needing root access.

I also fixed some issues I bumped into while testing (see commits).

eduardosm avatar Dec 28 '23 21:12 eduardosm

A quick note: this should not affect probably the most common case of qemu or bare-metal with kernel bootstrap without --external-sources, which already proceeds without ever creating an FS image other than srcfs.

Googulator avatar Dec 30 '23 19:12 Googulator