fosslinux / live-bootstrap

Use of a Linux initramfs to fully automate the bootstrapping process
501 stars 35 forks source link

Build with linux kernel prompts user to proceed #422

Closed rick-masters closed 8 months ago

rick-masters commented 8 months ago

The commit to allow creating disk without root https://github.com/fosslinux/live-bootstrap/commit/679f73bbf126eab1ea8e73c10fc900f47c0ad064 started using mkfs.ext3 on a file image.

This triggers a prompt from mkfs.ext3:

Found a dos partition table in /home/ubuntu/live-bootstrap/target/disk.img
Proceed anyway? (y,N)

We need the -F flag because we are no longer running mkfs on a partition on a block special device.

From the man page:

       -F     Force mke2fs to create a filesystem, even if the specified device
 is not a partition on a block special device, or if  other  parameters do not make sense.