It work, sort of. I got the message "cryptsetup: source parameter missing." But I didn't get asked for the password.
Summary:
save_work="yes" in etc/refractasnapshot.conf, so that there's a copy of the filesystem to work with. You could alternately do it on the fly if you have edit_boot_menu="yes". Then, when the editor comes up with the boot menu, you go to another virtual console or terminal and work on the copied filesystem just before it gets squashed.
As unprivileged user:
The initrd you want to edit is at /home/work/iso/live/initrd.img
Copy it to your home. Make a new directory in your home and cd to it. Unpack the initrd with
- Code: Select all
fakeroot zcat ../initrd.img | cpio -i
Edit:
Delete conf/conf.d/cryptroot (and you won't get the error message about the missing parameter.)
Repack the initrd with
- Code: Select all
fakeroot find . -print0 | cpio -0 -H newc -o | gzip -c > ../initrd.nocrypt
Then as root, copy /home/<user>/initrd.nocrypt to /home/work/iso/live/initrd.img
Then run refractasnapshot with the no_copy option (or close the editor window if you paused the program to edit the boot menu.)
Bonus points if you make a backup copy of initrd.img in the iso/live/ folder and create an extra boot menu entry to use that initrd, in case the repacked one doesn't work.
Obviously, this isn't exactly right, or I wouldn't be getting that error message, but I think we're getting close.