On Fri, Dec 11, 2020 at 12:09 PM Matthew Miller <mattdm@xxxxxxxxxxxxxxxxx> wrote: > > On Fri, Dec 11, 2020 at 10:57:30AM -0800, Adam Williamson wrote: > > su -c "livecd-iso-to-disk --home-size-mb 2048 Fedora-Workstation-Live-x86_64-34-1.1.iso /dev/sdX" > > My complication is: we need to have an image that has all of this pre-made > to give to the vendor. If I do the above to a loopback device, will that > result in a file I can just give them? Yes. But this needs some tweaking and testing. # livecd-iso-to-disk --noverify --format --efi --reset-mbr --overlayfs --overlay-size-mb 4095 --home-size-mb 4095 --unencrypted-home /mnt/libvimages/Fedora-Workstation-Live-x86_64-33-1.2.iso /dev/loop0 * GPT disk with 1 partition, GUID is EFI System partition, FAT32 * Contains: * FAT32 file size limit is 4G, so the overlay and home files can't be bigger than that * Media test is selected by default, this is skipped because it's now using FAT not ISO 9660, so it's kinda misleading * Boots both BIOS and UEFI * /home is on a loop mounted home.img file, so getting data out post-install is non-obvious. There is an image mount option in GNOME Disk Utility, that'd do it, but you kinda have to hunt for the home.img file on the USB stick. The --overlayfs option is relatively recent, uses overlayfs instead of device-mapper based overlay. This is quite a lot better, because it means the space available on / is based on the space provided by the overlay file, rather that being limited to the ext4 file system nested in the squashfs file that's created at compose time. I'm not sure if it's possible to get the tool to create two partitions: small ESP for UEFI booting, and a big ext4 or btrfs for the squashfs.img/rootfs.img, overlay, and home.img files. Those are all limited to 4G when on FAT. -- Chris Murphy _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx