This is the entire point behind NixOS.
For Debian there's Preseed, for Arch there's archinstall, for a Fedora/RHEL there's Kickstart, for Alpine there's setup scripts, for distros with fully manual installs, you could just write a script?
Automating your install is something any sysadmin and mainly any distro developer will quickly reach towards, so it is something almost certain to exist.
Though, if I understand you, you'd want that to be "sourced" from an existing system, yes? I can see the use of that... NixOS is likely the closest to what you want, since you are always defining a full declaration of your system.
Who's going to say what is to be reset in a "full new install" and what is kept? I don't think the line is as clear as you think.
For example, the disk space. Maybe one partition was made to be a flat amount, and another gets what's left, maybe it's a percentage split. Who's to say?
What if the rest of the hardware is significantly different? Maybe your old amd setup needed no third party drivers, but your new nvidia setup is broken without the third party drivers?
I don't think copying the username / password is a good idea either, ever, by the way.
I think the gray area between cloning and just doing a fresh install without copying anything is a little too personal (and/or hardware-specific) to really manage well this way.
This is not really a highly requested feature, so I'm not sure that it exists. You'd probably be better off writing a simple cloud-init config and using that.
I guess if you write a set of declarations for NixOS you can copy that same file to the new machine. Thanks for the pointers. What about the "install facts" being just a byproduct of the first install? You don't even have to write a script.. anyway. It seems there are ways to do this already, Thanks!
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0