Monday, March 02, 2026

Re: Port a machine from arm64 to amd64

I am using a similar approach. When setting up a new machine, i send each config file to RCS before editing. So, when transferring the installation to another machine, I can easily identify all changed config files and can even transfer the changes via rcsdiff(1) and patch(1).
The tool that I was hoping for, would have made things even more comfortable.

> On 28. Feb 2026, at 00:34, Ian Darwin <ian@darwinsys.com> wrote:
>
> One technique I've used in the past is to check only the modified files into git (one might use 'got' today).
>
> Depending on the degree of trust of where the git repo is (tightly controlled local net vs Github), you should probably add /etc/master.passwd and pwd.db, in fact anything with passwords, private keys, etc. into .gitignore so they don't get revealed.
>
> On a new machine, I'd:
>
> cd /
> git checkout .../etc_files
> mv etc_files/.git etc
>
> Then use combinations of git status, git diff OR diff ./foo ../etc_files, git restore files that you want overwritten with the value from the previous machine, etc. Inevitably some files will change, so commit and push again when you have a workable new system.
>
> Remember to rm /etc_files when done.
>
> Read "Reset, restore and revert" in the git doc before you "try this at home, kids".
>
> It worked OK in the absence of a dedicated tool for the job, which I doubt anyone will actually write.
>
> YMMV. Use at own risk. Etc.
>

No comments:

Post a Comment