On Fri, 2020-12-11 at 13:48 -0500, Matthew Miller wrote:
We're going to spend some of our remaining budget on a swag
refresh, and as
part of that, we're getting some shiny new USB sticks, and partly
considering the recent discussion about making it easy for new users to try
without committing, we're getting ones with decent speed and quality and
room for a persistent overlay.
It has been approximately a decade since I made such an image. Does anyone
have a recipe for creating one with persistent storage (and possibly a
separate home filesystem, or however that should be set up on btrfs?)
AFAIK it *should* still work as documented on the old wiki page:
https://fedoraproject.org/w/index.php?title=How_to_create_and_use_Live_US...
"To include a persistent filesystem for /home, use the --home-size-mb parameter. For
example:
su -c "livecd-iso-to-disk --home-size-mb 2048
Fedora-Workstation-Live-x86_64-34-1.1.iso /dev/sdX"
This will create a 2 GiB filesystem that will be mounted as /home each
time the stick is booted, allowing you to preserve data in /home across
boots.
To enable 'data persistence' support - so changes you make to the
entire live environment will persist across boots - add the --overlay-
size-mb parameter to add a persistent data storage area to the target
stick. For example:
su -c "livecd-iso-to-disk --overlay-size-mb 2048
Fedora-Workstation-Live-x86_64-34-1.1.iso /dev/sdX"
where 2048 is the desired size (in megabytes) of the overlay. The
livecd-iso-to-disk tool will not accept an overlay size value greater
than 4095 for VFAT, but for ext[234] filesystems it is only limited by
the available space."
I have no idea when is the last time anyone tested this.
--
Adam Williamson
Fedora QA
IRC: adamw | Twitter: adamw_ha
https://www.happyassassin.net