Add init=/bin/bash
to Linux kernel command line (via bootloader).
After booting to bash shell prompt:
mount -t proc proc /proc
The shell will have PID 1, use strace
to attach while putting it into background.
Courtesy of [Wine Bugzilla #46842][1].
Set native overrides:
The show the compiler flags used for building 64-bit host
$ rpmbuild --eval '%{optflags}'
-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
For 32-bit host:
For example to clone USB sticks even onto different brand while retaining device serial numbers, vendor, product etc.
Tools to reflash USB firmware and more importantly to change USB descriptor properties: