this post was submitted on 08 May 2025
6 points (87.5% liked)

Linux

54028 readers
1264 users here now

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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

Please let me know if there is already an accepted way to do this.

Early in the install process, you'd have a field to type a hostname of a local machine that you'd like to install like. The installer would download an "Install facts" file and install the new machine like the model machine.

The "install facts" file is created at install time. it contains things like timezone, language, percentage of disk space for each partition (to handle disk space of differing sizes) Optional files selected, username/password for root and for first user - anything needed to make the install a two click operation.

Note that this would be a full new install - not a clone of a machine that has been in use for a while.

top 5 comments
sorted by: hot top controversial new old
[–] NightFantom@slrpnk.net 2 points 13 hours ago

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.

[–] waspentalive@lemmy.one 1 points 16 hours ago

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!

[–] Xanza@lemm.ee 6 points 1 day ago* (last edited 1 day ago)

This is the entire point behind NixOS.

[–] jutty@blendit.bsd.cafe 2 points 21 hours ago* (last edited 21 hours ago)

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.

[–] catloaf@lemm.ee 2 points 23 hours ago

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.