You are not logged in.
Hello,
I'm trying to make a custom USB stick which will have a separate non-persistent partition for possible CoW operations when the live USB has been booted. I am able to change the cowspace to the separate partition by using cow_device=/dev/disk/by-uuid/*UUID OF THE PARTITION*, but the changes will remain after a reboot. I would like this partition to be non-persistent, just like in default case when the tmpfs is on RAM. I am using Archiso to build the ISO.
Can this be achieved? From archiso readme documentation regarding boot params (https://github.com/djgera/archiso/blob/ … bootparams) I can see that if I used dm-snapshot mode I could set the *cow_persistent* flag to be N as non-persistent. But I can't find how I could use dm-snapshot instead of overlayfs.
EDIT:
Seems like Archiso uses dm-snapshot if the file "/run/archiso/sfs/airootfs/airootfs.img" is present (https://github.com/djgera/archiso/blob/ … chiso#L208). Why is it not present on my USB installation? Is this some runtime check and machine dependent?
EDIT 2:
I think I found it, the default mode is actually defined in https://github.com/djgera/archiso/blob/ … rchiso#L92 . I will report back later today if it worked.
EDIT 3:
It worked.
jussi
Last edited by jussih (2018-07-11 12:49:11)
Offline