this post was submitted on 07 Apr 2024
18 points (84.6% liked)

Shell Scripting

1347 readers
1 users here now

From Ash, Bash and Csh to Xonsh, Ysh and Zsh; all shell languages are welcome here!

Rules:
  1. Follow Lemmy rules!
  2. Posts must relate to shell scripting. (See bottom of sidebar for more information.)
  3. Only make helpful replies to questions. This is not the place for low effort joke answers.
  4. No discussion about piracy or hacking.
  5. If you find a solution to your problem by other means, please take your time to write down the steps you used to solve your problem in the original post. You can potentially help others having the same problem!
  6. These rules will change as the community grows.

Keep posts about shell scripting! Here are some guidelines to help:


In general, if your submission text is primarily shell code, then it is welcome here!

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 7 months ago* (last edited 7 months ago) (1 children)

Yeah but this script works on all distros and operating systems regardless of whether they have Kickstart. Also lots of OS's don't ship with Python, Void Linux for example.

[–] [email protected] 2 points 7 months ago* (last edited 7 months ago) (1 children)

This script won't work in any distro, you have to use a lot of distro specific commands in it. But if you write a script for a specific distro anyway, why not use a tool that distro provides? You'll be sure that it does everything correct way and you even won't need to run anything after installation completed. You can also save time and disk space by excluding packages you don't need but that would be installed by default. You can also automate disk partitioning and customize other installer settings saving even more time.

Speaking about configuration management tools, they can look a bit overkill, but they have at least one advantage of shell script - idempotency. They won't try to install already installed software, change configs that don't need to be changed etc.

[–] [email protected] 1 points 7 months ago (1 children)

What commands do I use that are distro specific?

[–] [email protected] 1 points 7 months ago (1 children)
[–] [email protected] 1 points 6 months ago

I actually don't use them in the main script, I do specify you can add them to the script if you use them.