Skip to content

mkarchiso: copy files to ext4 image using mkfs.ext4's -d option instead of mounting the file system

nl6720 requested to merge nl6720/archiso:no-mount into master

mkfs.ext4 with its -d option can "copy the contents of the given directory into the root directory of the filesystem". This allows to get rid of the last directly used mount and umount commands in mkarchiso.

Place mkfs.ext4 options in an array to avoid duplicating the command.


Test by setting airootfs_image_type="ext4+squashfs" in profiledef.sh.

Edited by nl6720

Merge request reports

Loading