Refracta2usb remains, for me, the best tool to create a live usb. It is in need of some maintenance however.
Newer initrd layouts (excalibur>) place the kernel modules (now individually compressed) in a separate,
uncompressed cpio archive to which is concatenated to the main compressed cpio. Previously this was all lumped together. Also, if you have cpu microcode installed that will also be placed in separate, uncompressed and concatenated cpio archives. Plus live-boot (to be patched) is now version 20250225 for excalibur.
This breaks the patch_initrd function in refracta2usb which enables RW access to the partition containing the live-media. It's particular useful for a usb pen and various debugging activities.
Here's a list of those and some other changes I made here for refracta2usb. Not in any "official" capacity. Primarily for my own use but others may be interested. Starting with the most recent refracta2usb, newest changes first.
* Update patch-initrd for live-boot 20250225 (Excalibur).
* Support patch initramfs with multiple cpio's.
* Fix chown failure on vfat.
* Move PATH addition /opt/trinity/bin to main script.
* Fix failure to delete loop device.
* Fix failure to umount.
* Tidy up some script comments.
* Set USB mount options for user rw access.
* Open file manager/editor instances as user not root.
* Remove dialog references to root editor and file manager.
* Include /opt/trinity/bin/kwrite as editor option.
* Include final check and warning for USB umount failure.
* Trinity Desktop will crash if kwrite is called from root:
* Add extra launcher to suit TDE (shown only in TDE).
* Add adwaita-icon-theme to recommends (cosmetic only).
* Add --progress to all rsync commands in main script.
* Fix root owned logfile in user's $HOME
* Sort Lintian errors:
* Add lintian override to suppress refracta2usb.desktop warning
* Create basic man page (incomplete as yet).
* Add "extended description" to debian/control.
* Remove executable flag on some text files.
* Remove deprecated "snapshot2usb" title references.
* Add option to set debug mode in conf file
* Package as "Debian Native" with full source tarball.
I haven't got round to proper testing yet in all scenarios but seems good so far.
If anyone is interested I can post later, somewhere, the result. Maybe someone else could test it and write back. Maybe the next official version can use some of this.
Source: https://dev1galaxy.org/viewtopic.php?id=7173
Newer initrd layouts (excalibur>) place the kernel modules (now individually compressed) in a separate,
uncompressed cpio archive to which is concatenated to the main compressed cpio. Previously this was all lumped together. Also, if you have cpu microcode installed that will also be placed in separate, uncompressed and concatenated cpio archives. Plus live-boot (to be patched) is now version 20250225 for excalibur.
This breaks the patch_initrd function in refracta2usb which enables RW access to the partition containing the live-media. It's particular useful for a usb pen and various debugging activities.
Here's a list of those and some other changes I made here for refracta2usb. Not in any "official" capacity. Primarily for my own use but others may be interested. Starting with the most recent refracta2usb, newest changes first.
* Update patch-initrd for live-boot 20250225 (Excalibur).
* Support patch initramfs with multiple cpio's.
* Fix chown failure on vfat.
* Move PATH addition /opt/trinity/bin to main script.
* Fix failure to delete loop device.
* Fix failure to umount.
* Tidy up some script comments.
* Set USB mount options for user rw access.
* Open file manager/editor instances as user not root.
* Remove dialog references to root editor and file manager.
* Include /opt/trinity/bin/kwrite as editor option.
* Include final check and warning for USB umount failure.
* Trinity Desktop will crash if kwrite is called from root:
* Add extra launcher to suit TDE (shown only in TDE).
* Add adwaita-icon-theme to recommends (cosmetic only).
* Add --progress to all rsync commands in main script.
* Fix root owned logfile in user's $HOME
* Sort Lintian errors:
* Add lintian override to suppress refracta2usb.desktop warning
* Create basic man page (incomplete as yet).
* Add "extended description" to debian/control.
* Remove executable flag on some text files.
* Remove deprecated "snapshot2usb" title references.
* Add option to set debug mode in conf file
* Package as "Debian Native" with full source tarball.
I haven't got round to proper testing yet in all scenarios but seems good so far.
If anyone is interested I can post later, somewhere, the result. Maybe someone else could test it and write back. Maybe the next official version can use some of this.
Source: https://dev1galaxy.org/viewtopic.php?id=7173