fosslinux / live-bootstrap

Use of a Linux initramfs to fully automate the bootstrapping process
291 stars 26 forks source link

Create disk images without root #381

Closed eduardosm closed 6 months ago

eduardosm commented 6 months ago

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).

Googulator commented 6 months ago

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.